How do you convert a mmddyy variable to a date9 variable? For example, suppose we have the following:
x = 05/10/2011
I want x to be of the form 10May2011. So I did the following:
xnew = put(x, date11.);
But for some reason there is an error (date11 is not a recognized format). Why? I am guessing you cannot convert from one date format to another date format? You have to first convert the format back to the sas internal value (number of days from January 1, 1960) and then convert it to date11?