nerdexam
SAS_Institute

A00-211 · Question #124

Given the SAS data set WORK.ONE: The following SAS program is submitted: The data set WORK.TWO is created, where Day would be 1 for Sunday, 2 for Monday, 3 for Tuesday, ... : Which expression…

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

Question

Given the SAS data set WORK.ONE:

The following SAS program is submitted:

The data set WORK.TWO is created, where Day would be 1 for Sunday, 2 for Monday, 3 for Tuesday, ... :

Which expression successfully completed the program and creates the variable DAY?

Options

  • Aday(BeginDate)
  • Bweekday(BeginDate)
  • Cdayofweek(BeginDate)
  • Dgetday(BeginDate,today())

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    76% (22)
  • C
    3% (1)
  • D
    14% (4)

Community Discussion

No community discussion yet for this question.

Full A00-211 Practice