Example 6: Conversion of numeric values to character values
You have already seen how to do numeric to character conversion. Use the PUT function.
PROC FORMAT;
VALUE SCORE 0-<65 ='F'
65-<70 ='D'
70-<80 ='C'
80-<90 ='B'
90-HIGH ='A';
Data Grades;
ID = _N_;
Input Score;
GRADE = Put (Score, Score.);
Datalines;