61 DATA readdate;
62 FORMAT date DATE9.;
63 INFILE sasdate;
64 INPUT date : date9. ;
65 RUN ;
NOTE: The infile SASDATE is:
RECFM=V,LRECL=256,File Size (bytes)=9,
NOTE: 1 record was read from the infile SASDATE.
The minimum record length was 9.
The maximum record length was 9.
NOTE: The data set WORK.READDATE has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.02 seconds
cpu time 0.03 seconds
The date value 07JAN2002 is of ddmmmyyyy form. In SAS, to read this value informat date9. can be used. Thus, option A is correct.
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.