nerdexam
SAS_Institute

A00-211 · Question #215

The following SAS program is submitted: libname temp `SAS data library'; data work.new; set temp.jobs; format newdate mmddw10.; mdate = month(newdate); ddate = weekday(newdate); run; proc print data…

The correct answer is B. Obs newdate mdate 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 mmddw10.; mdate = month(newdate); ddate = weekday(newdate); run; proc print data = work.new; run; The variable NEWDATE contains the SAS date value for April 15. 2005. What output is produced if April 15, 2005 falls on a Friday?

Options

  • AObsnewdate mdate ddate
  • BObs newdate mdate ddate
  • CObs newdate mdate ddate
  • DObs newdate mdate ddate

How the community answered

(37 responses)
  • A
    3% (1)
  • B
    70% (26)
  • C
    8% (3)
  • D
    19% (7)

Community Discussion

No community discussion yet for this question.

Full A00-211 Practice