You don't need a case statement to recode the values you can use a format: proc format; picture daterecode low - '31DEC2005'd = 'Up to 2005' (datatype=date) '01JAN2006'd - '31DEC2007'd = %Y (datatype=date) high = '2008+' (datatype=date) ; run; data temp; x= '15AUG2004'd; y = '12JUN2006'd; z = '10Feb2009'd; run; proc print data=temp; format x y z daterecode.; run; You can use your date value and assign the format for use in the report generator.
... View more