20 proc format;
21 value score
22 1 - 50 = 'Fail'
23 51 - 100 = 'Pass';
NOTE: Format SCORE is already on the library.
NOTE: Format SCORE has been output.
NOTE: PROCEDURE FORMAT used (Total process time):
real time 0.02 seconds
cpu time 0.00 seconds
26 proc report data = work.courses nowd;
27 column subject exam;
28 define exam / display format = score.;
NOTE: There were 4 observations read from the data set WORK.COURSES.
NOTE: PROCEDURE REPORT used (Total process time):
real time 0.13 seconds
cpu time 0.06 seconds
The range specified in PROC format is applied to values which fall in the range inclusively. Since 50.5 does not belong to any range, SAS does not apply the format on this value, and it remains unchanged. The following is the output of PROC report:
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.