Forum posting Suggestion: next time create a new post as you being the AUTHOR, and paste a link if needed back to some forum archive reference.
With SAS 9.2, you have the ISO 8601 INFORMAT B8601TM demonstrated below.
Otherwise, you will need to separate the minute- and hour-portion and use the HMS function to derive a SAS numeric TIME variable.
Scott Barry
SBBWorks, Inc.
68 data _null_;
69 c_hmm = '105';
70 n_hmm = input(c_hmm,best.);
71 c_hhmm = put(n_hmm,z6.);
72 n_hmm_sec = input(c_hhmm,b8601tm.);
73 format n_hmm_sec time8.;
74 putlog _all_;
75 run;
c_hmm=105 n_hmm=105 c_hhmm=000105 n_hmm_sec=0:01:05 _ERROR_=0 _N_=1
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
SAS 9.2 Language Reference, Informats by Category
http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a001239776.htm
Message was edited by: sbb