SAS_Institute
A00-211 · Question #201
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…
The correct answer is D. Obs newdate qdate ddate. See the full explanation below for the reasoning.
Question
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?
Options
- AObs newdate qdate ddate
- BObs newdate qdate ddate
- CObs newdate qdate ddate
- DObs newdate qdate ddate
How the community answered
(18 responses)- A17% (3)
- B6% (1)
- C6% (1)
- D72% (13)
Community Discussion
No community discussion yet for this question.