1# sllhappy0729
It is always a good idea to do it right in the first place whenever is possible. It will be easy to read, clear in logic and efficient.
28 data _null_;
29 input date $8. @;
30 input @1 date2 anydtdte21.;
31 put date= date2= date2= yymmdd10. ;
32 datalines;
date=1JAN91 date2=11323 date2=1991-01-01
date=2JAN91 date2=11324 date2=1991-01-02
date=3JAN91 date2=11325 date2=1991-01-03
NOTE: DATA statement used (Total process time):
real time 0.04 seconds
cpu time 0.01 seconds
36 ;
37 run;