Hexa decimal to decimal conversion.

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Hexa decimal to decimal conversion.

Postby jvinoth » Mon Jun 18, 2012 2:16 pm

can anyone please tell me how to convert a hexadecimal value into decimal value using the cobol program.

Posts: 132
Joined: Fri Nov 18, 2011 3:13 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Hexa decimal to decimal conversion.


Re: Hexa decimal to decimal conversion.

Postby Robert Sample » Mon Jun 18, 2012 4:52 pm

Terminology is critical in IT, where similar terms may mean very different things. And the COBOL Language Reference manual index lists only constants under the term "hexadecimal", so your terminology needs to be improved to make sense of what you are asking. What are you calling a hexadecimal value? Give us more information -- is this a PIC X variable? a COMP variable? some other form of COMP variable?
Robert Sample
Global moderator
Posts: 3100
Joined: Sat Dec 19, 2009 8:32 pm
Location: Bellevue, Iowa
Has thanked: 1 time
Been thanked: 177 times

Re: Hexa decimal to decimal conversion.

Postby dick scherrer » Mon Jun 18, 2012 7:53 pm


By now, you should begin to understand how critical terminology is to getting help.

Suggest you show (in hex) a few values you "have" and what you want as "output" when these fields are processed.
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6308
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 90 times

Return to IBM Cobol


  • Related topics
    Last post