A00-211 Exam QuestionsBrowse all questions from this exam

A00-211 Exam - Question 20


The following SAS program is submitted:

data one;

date = 04juI2005d;

format date weekdate.; run;

proc print data = one; run;

What output is generated?

Show Answer
Correct Answer: AD

The SAS program provided tries to assign a value of '04juI2005d' to a variable 'date' without proper quotation marks around the date string. This would result in a syntax error, and thus no output is generated. Therefore, the correct answer is that the output will only show 'Obs date' without any values.

Discussion

1 comment
Sign in to comment
Kleinstone
Jan 9, 2021

the date should have a quotation mark.