Okay, so after you have corrected the format, then what? How will you know that the date, for example, 02/29/2010, is or is not valid? Then, what will you do with the string, if sorting "by chronological date" is needed? This is my point.
Scott Barry
SBBWorks, Inc.
13 data _null_;
14 dt = input('02/29/2010',mmddyy10.);
15 put dt= date.;
16 run;
NOTE: Invalid argument to function INPUT at line 14 column 6.
dt=.
dt=. _ERROR_=1 _N_=1
NOTE: Mathematical operations could not be performed at the following places. The results of
the operations have been set to missing values.
Each place is given by: (Number of times) at (Line):(Column).
1 at 14:6
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds