ElearnSAS.com

ElearnSAS.com
SAS Learning Platform

Base SAS 94

The following SAS program is submitted:
data work.new;
mon = 3;
day = 23;
year = 2000;
date = mdy(mon,day,year);
run;
Which one of the following is the value of the DATE variable?
A. a character string with the value '23mar2000'
B. a character string with the value '03/23/2000'
C. a numeric value of 14692, which represents the SAS date value for March 23, 2000
D. a numeric value of 3232000, which represents the SAS date value for March 23, 2000
Click Comment link to get answer

10 comments:

  1. Anonymous7:32 AM

    mdy creates only SAS date value

    so the Ans is:

    C. a numeric value of 14692

    ReplyDelete
  2. Anonymous9:08 AM

    Hey guys I think it's C!!!

    ReplyDelete
  3. Please explain anyone.

    ReplyDelete
    Replies
    1. Anonymous2:19 PM

      go to to the ques 93's comments section,you will get the answer as it counts the days starting from 1jan,1960

      Delete