mycsg.in
SAS
SASnR
Clinical Programming
CRFs
SDTM
ADaM
TFL
Tasks
Macros
Quizzes
Resources
Disclaimer
Contact Us
Advertisement
1 / 10
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
;
Saving progress…
My progress
⚑
Something not right with this question?
Report it
Advertisement
Report this question
×
Quiz:
Loading the question…
Question
What's the issue?
The marked correct answer is wrong
Question is unclear / insufficient information
Pick the correct answer
marked correct
Describe the issue
(optional)