SAS Certified Base Programmer 123 Questions (29)
The following SAS program is submitted:
libnametemp '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?
A.
| Obs | newdate | qdate | ddate |
| 1 | APR152000 | 2 | 6 |
B.
| Obs | newdate | qdate | ddate |
| 1 | 04/15/2000 | 2 | 6 |
C.
| Obs | newdate | qdate | ddate |
| 1 | APR152000 | 2 | 7 |
D.
| Obs | newdate | qdate | ddate |
| 1 | 04/15/2000 | 2 | 7 |
Topics:
SAS Base Questions |
1 Comment »
D