SAS Certified Base Programmer 123 Questions (115)
The following SAS program is submitted:
data work.january;
set work.allmonths (keep=product month num_sold cost);
if month='jan'then output work.january;
sales=cost*num_sold;
keep=product sales;
run;
Which variables does the WORK.JANUARY data set contain?
A. PRODUCT and SALES only
B. PRODUCT, MONTH, NUM_SOLD and COST only
C. PRODUCT, SALES, MONTH, NUM_SOLD and COST only
D. An incomplete output data set is created due to syntax errors.
Topics:
SAS Base Questions |
3 Comments »
D
Could you please explain why incomplete output and what is the syntax error?? Thanks in advance
Keep statement is written without equal sign.