nomad5 发表于 2012-9-11 16:14 
如果没有逗号
data a;
No, use input function with time5. informat.
180 data a;
181 * format b time8.;
182 a='09:00';
183 b=input(a,time5.);
184 *b=hms(scan(a,1,':'),scan(a,2,':'),'00');
185 put a= b= b= time8.;
186 run;
a=09:00 b=32400 b=9:00:00
NOTE: The data set WORK.A has 1 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds