Page 1 of 1

Hexa decimal to decimal conversion.

PostPosted: Mon Jun 18, 2012 2:16 pm
by jvinoth
Hi,
can anyone please tell me how to convert a hexadecimal value into decimal value using the cobol program.

Thanks.

Re: Hexa decimal to decimal conversion.

PostPosted: Mon Jun 18, 2012 4:52 pm
by Robert Sample
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?

Re: Hexa decimal to decimal conversion.

PostPosted: Mon Jun 18, 2012 7:53 pm
by dick scherrer
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.