Page 1 of 1

Given the following data at WORK DEMO:Which SAS program prints only the first 5 males in this order from the data set?

Posted: Fri Aug 26, 2022 10:05 am
by answerhappygod
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;