proc format; value $YN 'X' = 'Yes' ' ','' ='No' /* this line includes 2 single quotes with a space and just 2 single quotes depending on how your data as a "blank" is created both may be needed*/ ; Value agegroup 13-19='Teen' 20-29='20s' 30-39='30s' <follow obvious pattern> 90-99='90s' 100-high='100+'; run; Useage example: proc print data=yourdatesetnamegoeshere; var YesNo age; format YesNo $YN. age agegroup. ; run; where YesNo is your variable with X/blank coding and Age is the variable with ages.
... View more