SAS Base (25)

Given the following code:

proc print data=SASHELP.CLASS(firstobs=5 obs=15);
where Sex=’M’;
run;

How many observations will be displayed?

A. 11
B. 15
C. 10 or fewer
D. 11 or fewer

Check Answer
Answer: D

注解:首先只有5-11行中的数据才会被打印出来,所以最多能出现11条数据,其次这些数据还需要满足Sex为M。FIRSTOBS和OBS参考SAS Base (5)

Leave a Reply

Your email address will not be published. Required fields are marked *