SAS_Institute
A00-281 · Question #41
Given the following data at WORK DEMO: Which SAS program prints only the first 5 males in this order from the data set?
The correct answer is B. proc print data=WORK.DEMO(obs=5). See the full explanation below for the reasoning.
Question
Given the following data at WORK DEMO:
Which SAS program prints only the first 5 males in this order from the data set?
Exhibit
Options
- Aproc sort data=WORK.DEMO out=out;
- Bproc print data=WORK.DEMO(obs=5);
- Cproc print data=WORK.DEMO(where=(sex='M'));
- Dproc sort data=WORK.DEMO out=out;
How the community answered
(55 responses)- A7% (4)
- B71% (39)
- C18% (10)
- D4% (2)
Community Discussion
No community discussion yet for this question.
