Multiple choice technology programming languages

1----5----10--- (data in file ‘asa’) 03132000 data temp; infile ‘asa’; input date : MMDDYY10.; run; What will be stored in date?

  1. 02 January

  2. 02FEB2000

  3. 01022000

  4. 14682(number of days from 1st jan 1960)

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

The MMDDYY10. informat reads '03132000' as March 13, 2000 (MM=03, DD=13, YY=2000). SAS stores all dates internally as the number of days since January 1, 1960, which is why the stored value is 14682. Options A, B, and C show formatted outputs, not the internal stored value.