**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.