and for anyone else reading along, if you want the month you can use
month(date)
and if you want the year, you can use
year(date)
The format of the variable is irrelevant when you use the DAY() or the MONTH() or the YEAR() function; however the variable must be numeric, and the variable must be a valid SAS date (number of days since 01JAN1960) and not something like 090921 which is not a valid SAS date.
--
Paige Miller