42 data work.new;
43 mon = 3;
44 day = 23;
45 year = 2000;
46 date = mdy(mon,day,year);
NOTE: The data set WORK.NEW has 1 observations and 4 variables.
NOTE: DATA statement used (Total process time):
real time 0.02 seconds
cpu time 0.01 seconds
In the statement date = mdy(mon,day,year);, MDY() is a SAS function which returns a SAS date value from month, day and year values. For more information please refer to the link below:
The one and only FREE resource for general SAS online training as well as study guides for the SAS Base Certification. My goal is to create the SAS Certification prep guide that I never found but always wanted. This should also be a place to come if you are new to the language but are simply looking for online SAS training.