A00-211 Exam QuestionsBrowse all questions from this exam

A00-211 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?

Show Answer
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

3 comments
Sign in to comment
Kleinstone
Jan 11, 2021

this is a bit confusing.

KleinstoneOption: A
Jan 11, 2021

the answer is A?

mhminkovOption: D
Jun 4, 2021

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