Hi
SAS does have the HHMMSS. informat which can read either hh:mm:ss or hhmmss time values, together with the YYMMDD. informat you can convert the char values to SAS date and time values, the DHMS will make a datetime value out of it.
data have;
input SRTDT $ PSTTM $ STPDT $ PEDTM $;
psttm2 = input(psttm, hhmmss4.);
srtdt2 = input(srtdt, yymmdd8.);
startDate = dhms(srtdt2,0,0,psttm2);
format
psttm2 time8.
srtdt2 date9.
startDate datetime19.
;
datalines;
20150211 1942 20150212 0030
20130826 1220 20130826 1535
;
Bruno
... View more