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

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

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

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: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Hexa decimal to decimal conversion.

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

Hello,

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,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post