Don't forget to create account on our site to get access to more material made only for free registered user.  
SAS A00-211 Certification SAS A00-212 Certification Questions and Answers SAS A00 240 Certification Material SAS A00-250 Exam Material Certification SAS Packaged Solutions

Question 3 : 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?

1.     PRODUCT and SALES only
2.     PRODUCT, MONTH, NUM_SOLD and COST only
3.     PRODUCT, SALES, MONTH, NUM_SOLD and COST only
4.     An incomplete output data set is created due to syntax errors

Correct Answer : 4

Exp : As there is syntax error.
"keep = product sales" which is the incorrect way to use KEEP option

It has syntax error is it due to
1) if month = 'Jan' then output work.january; or
2) keep = product sales;

For sure if it is with data line ( drop = variables) and no need = in the body separately.

 

You have no rights to post comments