dear all, can you please show me where is my error.
I read a file , which the record field is : first two positions : number in binary position 3 : string of 10 characters. my objective is to get the number in decimal I do this : "execio 1 diskr INDD (STEM enregt.)" str= substr(enregt.1,3,10) numberx = b2x(enregt.1,1,2) numberd= x2d(numberx) say "number=" numberd say "string=" str then i get "Bad arithmetic conversion problem" on the line str=substr(enregt.1,3,10) when i display enregt.1 everything is OK ??? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

