mycsg.in
SAS
SASnR
Clinical Programming
CRFs
SDTM
ADaM
TFL
Tasks
Macros
QnA
Certification
Resources
Disclaimer
Contact Us
Sign Up
Login
This website uses cookies to personalize content and analyse traffic in order to offer you a better experience. By clicking "OK", or continuing using our site, you consent to the use of cookies.
OK
Quiz title : Set - 001 - Part 01
Question 1 of 10
Given the following data at WORK DEMO:
Which SAS program prints only the first 5 males in this order from the data set?
proc
sort
data
=WORK.DEMO
out
=out;
by
sex;
run
;
proc
print
data
= out (
obs
=
5
);
run
;
proc
print
data
=WORK.DEMO(
obs
=
5
);
where
Sex=
'M'
;
run
;
proc
print
data
=WORK.DEMO(
where
=(sex=
'M'
));
where
obs<=
5
;
run
;
proc
sort
data
=WORK.DEMO
out
=out;
by
sex
descending
;
run
;
proc
print
data
= out (
obs
=
5
);
run
;