SAS Base Programming for SAS 9 — Question 3

The following SAS program is submitted:
libname temp 'SAS-data-library';
data work.new;
set temp.jobs;
format newdate mmddyy10.;
qdate = qtr(newdate);
ddate = weekday(newdate);
run;
proc print data = work.new;
run;
The variable NEWDATE contains the SAS date value for April 15, 2000.
What output is produced if April 15, 2000 falls on a Saturday?

Answer options

Correct answer: D

Explanation

The output will show the variable names without any observations because the dataset 'work.new' only has variable definitions and no actual data output. The other options incorrectly suggest the presence of observations based on the computations, but since there are no records in 'temp.jobs' to process, those outputs cannot be produced.