I changed the original program:
delhr=SUBSTR(Del_time, 1,2);
delmin=SUBSTR(Del_time, 3,2);
del_time= trim(delhr)||':'||trim(delmin);
format DELTIME time5.;
DELTIME=input(del_time,time5.);
To read as follows:
delhr=SUBSTR(Del_time, 1,2);
delmin=SUBSTR(Del_time, 3,2);
del_time1= trim(delhr)||':'||trim(delmin);
format DELTIME time5.;
DELTIME=input(del_time1,time5.);
I'm sorry, I mean that it didn't like me using the same variable name for the original variable and the new character variable with the ":". Once I changed this, it worked fine.