There isn't a direct function but long string from couple of weeks ago about
going from character to hex will work with the logic reversed.

Unless you just want to convert half word or full word to Decimal in which
case
77  number-half   pic s9(4) comp.   -- this is cobol definition for asm of
DS H.
77 number-decimal pic s9(5) comp-3. - cobol for decimal format.
move number-half to number-decimal.

Odd lengths like 3 byte or 1 byte require redefines and char manipulation.

Mike

On 12/5/05, Daniel Cremieux <[EMAIL PROTECTED]> wrote:
>
> Dear all
>
> How can we achive this in Cobol ?
> I don't see any function which can do it
>
> Thank you
>
> ----------------------------------------------------------------------
> 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
>



--
Mike

----------------------------------------------------------------------
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

Reply via email to