Display hexadimal values using COBOL

3 posts / 0 new
Last post
Anonymous
Display hexadimal values using COBOL

 

 

 

 

I want to display the hexadecimal values of contents of a variable.
 
Lets say the value stored in a variable is "A" then in the sysout I wish to display the hexadecimal equivalent which is C1.
 
I think if I display the normal value of the variable and go to sysout and do a hex on, I should see the hex values but I want the sysout to display the hex values rather than the normal values.
 
Is this possible in COBOL?
"; ; ; ;
Offline
Joined: 07/07/2011 - 19:59
Hex values in COBOL

Not possible directly, you need to write a COBOL program or you can find one at this address:

https://www-304.ibm.com/support/docview.wss?uid=swg27009580&aid=1

Anonymous
Thank you!

The PDF you pointed to contained a lot of very interesting stuff besides displaying content in Hex.

Log in or register to post comments
Sponsored Listing