In <[EMAIL PROTECTED]>, on 12/05/2005 at 08:49 AM, Daniel Cremieux <[EMAIL PROTECTED]> said:
>I am converting a rexx program to cobol and having this problem . The >data is , for example x'0123' and after conversion , it must have >the value 123 (decimal) >In rexx , the statement is : decvalue = x2d(c2x(value)) No, [H:\]rexxtry REXXTRY.CMD lets you interactively try REXX statements. Each string is executed when you hit Enter. Enter 'call tell' for a description of the features. Go on - try a few... Enter 'exit' to end. xvalue='0123'x ................................................ REXXTRY.CMD on OS/2 decvalue = x2d(c2x(xvalue)) ................................................ REXXTRY.CMD on OS/2 say decvalue 291 ................................................ REXXTRY.CMD on OS/2 -- Shmuel (Seymour J.) Metz, SysProg and JOAT ISO position; see <http://patriot.net/~shmuel/resume/brief.html> We don't care. We don't have to care, we're Congress. (S877: The Shut up and Eat Your spam act of 2003) ---------------------------------------------------------------------- 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