Given the following data at WORK DEMO:Which SAS program prints only the first 5 males in this order from the data set?
A. proc sort data=WORK.DEMO out=out; by sex; run; proc print data= out (obs=5); run;
B. proc print data=WORK.DEMO(obs=5); where Sex='M'; run;
C. proc print data=WORK.DEMO(where=(sex='M')); where obs<=5; run;
D. proc sort data=WORK.DEMO out=out; by sex descending; run; proc print data= out (obs=5); run;
Given the following data at WORK DEMO:Which SAS program prints only the first 5 males in this order from the data set?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Given the following data at WORK DEMO:Which SAS program prints only the first 5 males in this order from the data set?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!