Chapter 11: Reading SAS Data Sets
-
If you submit the following program, which variables appear in the new data set?
data work.cardiac(drop=age group); set clinic.fitness(keep=age weight group); if group=2 and age>40; run;
-
none
-
Weight
-
Age, Group
-
Age, Weight, Group
Correct answer: bThe variables Age, Weight, and Group are specified using the KEEP= option in the SET statement. After processing, Age and Group are dropped in the DATA statement. -
-
Which of the following programs correctly reads the data set Orders and creates the data set FastOrdr?
-
data catalog.fastordr(drop=ordrtime); set july.orders(keep=product units price); if ordrtime<4; Total=units*price; run;
-
data catalog.orders(drop=ordrtime); set ...
-
Get SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.