Page 78 - SAS_manual
P. 78
Putfunction is used to convert numeric to character
nvar=put(number,format)
Program 7.12: Output:
By applying proc contents you can know that the variables are of integer type.
For converting integer to character we have put function
Procformat;
value rat 1="poor"
2="average"
3="satisfactory"
4="very good"
5="Excellent";
run;
Program 7.13: Output:
On the above, we are applying format on the dataset.
Applying proc contents
SAS HANDBOOK | VISIT:: http://nikhilanalytics.com 78