A00-215 practice question 8 of 15

Which PROC PRINT step correctly displays only the first 10 observations in the data set?

Full set: 78 questions
Answer options
A: proc print data=sashelp.class(obs=l10); run; Correct answer
B: proc print data=sashelp.class; obs=10; run;
C: proc print data=sashelp.class obs=10; run;
D: proc print data=sashelp.class (oba«'10' ) ; run;
Correct Answer:
A. proc print data=sashelp.class(obs=l10); run;
Explanation

Option A is correct. The (obs=10) option is used as a data set option within the proc print statement to limit the number of observations processed to the first 10. The syntax should be placed immediately after the data set name within parentheses. Options B, C, and D are incorrect because they either use the wrong option or place the obs option incorrectly outside of the parentheses or with incorrect syntax.
Reference: SAS 9.4 documentation on the obs= data set option.

Scroll to Top