Exam A00-211 All QuestionsBrowse all questions from this exam
Question 50

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?

    Correct Answer: D

    The program contains a syntax error in the 'keep' statement ('keep = product sales;'). It should be 'keep product sales;' without the equals sign. This syntax error will prevent the program from executing correctly and an incomplete output data set will be created.

Discussion
mhminkovOption: D

given answer D is correct, as there is a syntax error in the keep statement (must be without = sign).

KleinstoneOption: A

the answer is A?

Kleinstone

this is a bit confusing.