07-13-2015 04:10 PM
I have a character variable for date, which shows like '23-JUN-12'. I was trying to convert this char variable into numeric, but could not do that. It seems that SAS does not have format for the date format like '23-JUN-12'. Could you let me know how to do? Thanks so much!
07-14-2015 09:15 AM
input x anydtdte11.;
format x date9.;
56 data xx;
57 input x anydtdte11.;
58 format x date9.;
59 put x=;
NOTE: DATA statement used (Total process time):
real time 0.84 seconds
NOTE: The data set WORK.XX has 3 observations and 1 variables.
cpu time 0.58 seconds
66 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
Need further help from the community? Please ask a new question.