Hi! I have compressed date/time variables in a character string with values that now look like this:
312140AUG07
311415MAY08
092105MAR07
The first two numbers are the day(date). 3-6 is the time. THen month and year....
I would like it to look like this format DDMMMYY:HHMM
What I am doing is not working. Appreciate your help!!
data rr.datetime2006 (keep=Inc Alert Launch OnSce Locate Recov Deliv RTB); set rr2006labels; array change _character_; do over change; change=compress(change,''); day=substr(change,1,2); time=substr(change,3,4); month=substr(change,7,3); year=substr (10,2); date=catt(day,month,year); change=catt(date,time); *want this to look like DDMMMYY:HHMM; end; run;
... View more