The following SAS program is submitted:
data one;
date = 04juI2005d;
format date weekdate.; run;
proc print data = one; run;
What output is generated?
The following SAS program is submitted:
data one;
date = 04juI2005d;
format date weekdate.; run;
proc print data = one; run;
What output is generated?
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.
the date should have a quotation mark.