SAS_Institute
A00-201 · Question #114
Which one of the following programs can be used to display the first 10 observations of the SASUSER.HOUSES data set in the default order?
The correct answer is B. proc print data=sasuser.houses; where _n_ <= 10; run. See the full explanation below for the reasoning.
Question
Which one of the following programs can be used to display the first 10 observations of the SASUSER.HOUSES data set in the default order?
Options
- Aproc print data=sasuser.houses (obs=10); run;
- Bproc print data=sasuser.houses; where n <= 10; run;
- Cproc print data=sasuser.houses; var n <= 10; run;
- Dproc print data=sasuser.houses; firstobs=1 obs=10; run;
How the community answered
(46 responses)- A4% (2)
- B70% (32)
- C17% (8)
- D9% (4)
Community Discussion
No community discussion yet for this question.