SAS Certified Specialist: Base Programming Using SAS 9.4 — Question 6
Which statement correctly adds a label to the data set?
Answer options
- A. DATA two Label="Subjects having duplicate observations"; set one; run;
- B. DATA two; Label="Subjects having duplicate observations"; set one; run;
- C. DATA two; set one; Label dataset="Subjects having duplicate observations"; run;
- D. DATA two(Label="Subjects having duplicate observations"); set one;
Correct answer: D
Explanation
Option D is correct because it properly uses parentheses to add the label directly to the data set declaration. Options A and B incorrectly place the Label statement, and option C misuses the Label statement by attempting to label the dataset variable instead of the data set itself.