When you say 5 character HEX value Do you mean something like PIC X(10) with values of "A12F33FFdd" - or do you mean that you are actually receiving data in "binary" which you are considering "hex"? If it is something like the first example, then the most common way to "solve" this in COBOL is by creating a 256 byte table and of hex bytes - and then do a SEARCH ALL to convert from the location in the table to the decimal value of that single hex-byte-value. Other methods do "manual" base-16 to base-10 conversions.
"Srini" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > I am receiving 5 character HEX value from a file and the requirement > is to convert the 5 character HEX value to Decimal in a COBOL program. > Is there any function/verb available in COBOL to convert the HEX vale > to Decimal? > > > > Thanks in advance. > > Srini ---------------------------------------------------------------------- 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

