cards;
19901225
19960906
19960305
;
These date are in yyyymmdd format,
I want to just flip that dates into mmddyyyy format.
So, my output will be
12251990
09061996
03051996
Please help me out.
Thanks!!
DATA Test;
infile datalines;
input sab yymmdd10. DOB yymmdd10.;
datalines;
19901225 19661225
19960906 19960605
19960305 19970804
99999999 00000000
;
run;
options missing=.;
options missing='';
data _NULL_;
set test;
file "C:\Documents and Settings\ctcnaik049\Desktop\CATVAL\date123.dat"
lrecl= 100;
format sab MMDDYYN8. DOB MMDDYYN8.;
put
sab
dob;
run;
options missing=.;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.