You have the statement ARG hsmcmd':'seconds Could it be that the seconds value is not entirely numeric? Maybe do something like this: seconds=word(seconds 2,1) /* set default =2 */ if datatype(seconds)<>'NUM' then call error 'bad seconds value "'seconds"'"'
---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN