These two SAS time INFORMATs appear to behave inconsistently when tested (log below with results):
ND8601TM - handles "hhmm"
HHMMSS - expects seconds, so must use INPUT function and concatenate "00"
Scott Barry
SBBWorks, Inc.
Suggested Google advanced search argument, this topic / post:
time +informat +"hhmm" site:sas.com
Usage Note 11206: IS8601* FORMATS and INFORMATS for DATE, TIME, and DATETIME
http://support.sas.com/kb/11/206.html
21 data _null_;
22 tm = input('1212',ND8601TM.);
23 put tm= time.;
24 run;
tm=12:12:00
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
25 data _null_;
26 tm = input('1212' !! '00',hhmmss.);
27 put tm= time.;
28 run;
tm=12:12:00
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds