proc format;
value typefmt 1='$groupx'
2='$groupy'
3='$groupz';
value $groupx 'positive'='agree'
'negative'='disagree'
'neutral'='notsure ';
value $groupy 'positive'='accept'
'negative'='reject'
'neutral'='possible';
value $groupz 'positive'='pass '
'n ...
In this example, the first statement converts the values of CC, a numeric variable, into the four-character hexadecimal format, and the second writes the same value that the PUT function returns.
cchex=put(cc,hex4.);
put cc hex4.;