Hello, I have a table called POLAIM_MERGE that includes the field LOAD_LAST_DATETIME (format=datetime20, informat=datetime20)
data POLAIM_ADD_FORMAT;
set POLAIM_MERGE;
mydate =datepart(LOAD_LAST_DATETIME);
mytime = timepart(LOAD_LAST_DATETIME);
format mydate ddmmyy10. mytime time5.;
LOAD_LAST_DATETIME_NEW= put(mydate,ddmmyy10.)||' '||put(mytime,time5.);
run;
I wrote the following code but I get in the field "mytime" the time 9:03, I would like the leading 0 to be displayed at the time, desired display: 09:03 How do I change the code to show as I need?
Thanks.
... View more