Multiple choice technology programming languages

data test; dat = '13MAR2000'd; format dat WEEKDATE.; run; What will be the value of dat in output dataset?

  1. 14682 (nmber of days from 1st jan 1960)

  2. 13MAR2000

  3. Monday, March 13, 2000

  4. Mon, March 13, 2000

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The WEEKDATE. format displays a SAS date value as 'weekday, month_name day, year'. Since 'dat' contains the SAS date value for March 13, 2000 (a Monday), the WEEKDATE. format produces 'Monday, March 13, 2000'. Option A shows the internal numeric value, Option B is the original unformatted representation, and Option D is incorrect.