mycsg.in
SAS
SASnR
Clinical Programming
CRFs
SDTM
ADaM
TFL
Tasks
Macros
QnA
Certification
Resources
Disclaimer
Contact Us
Training
Sign Up
Login
New or returning user — sign in with Google for instant login, no password needed.
Sign in with Google
Maybe later
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
;