nerdexam
SAS_Institute

A00-211 · Question #212

Given the SAS data set ONE: ONE ObsDte ------------- 109JAN2005 212JAN2005 The following SAS program is submitted: data two; set one; day = <insert expression here>; format dte date9.; run; The data…

The correct answer is B. weekday(dte). See the full explanation below for the reasoning.

Question

Given the SAS data set ONE:

ONE ObsDte ------------- 109JAN2005 212JAN2005 The following SAS program is submitted:

data two; set one; day = <insert expression here>; format dte date9.; run; The data set TWO is created:

TWO ObsDteDay 109JAN20051 12JAN20054 Which expression successfully completed the program and created the variable DAY?

Options

  • Aday(dte)
  • Bweekday(dte)
  • Cdayofweek(dte)
  • Ddatdif(dte,'01jan2005'd,'act/act')

How the community answered

(63 responses)
  • A
    16% (10)
  • B
    73% (46)
  • C
    3% (2)
  • D
    8% (5)

Community Discussion

No community discussion yet for this question.

Full A00-211 Practice