First, avoid coding all in uppercase, its really hard to read. You can put HH and MM into a time variable by:
data want;
hours=23;
mins=45;
time=input(catx(':',put(hours,z2.),put(mins,z2.)),time5.);
format time time5.;
run;
However there are better ways of doing it, using the HMS() function:
data want;
hours=23;
mins=45;
time=hms(23,45,0);
format time time5.;
run;
... View more