56 data revenue;
57 set year_1;
58 var1 = mdy(1,15,1960);
NOTE: There were 4 observations read from the data set WORK.YEAR_1.
NOTE: The data set WORK.REVENUE has 4 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.00 seconds
In the statement var1 = mdy(1,15,1960);, MDY() is a SAS function which returns a SAS date value from month, day and year values. Since day 0 in SAS is 1/1/1960, this day (1/15/1960) is number 14. 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.