Want to find correct hex value for tab in cobol

Asked By 90 points N/A Posted on -
qa-featured

Hi everyone'

I found that hex value for tab is consider as x'05' in cobol. Is it possible to represent decimal number in hex value? And also can you simply tell me the use of this value in cobol programming language.

SHARE
Best Answer by Gillam Janetj
Answered By 0 points N/A #154440

Want to find correct hex value for tab in cobol

qa-featured

Hello Gyle,

I have search a lot for your question in many ways in any web sites but i failed to find any answer for you. When i have searched in the web sites for the representation of decimal number in hex value i have found that it need to convert in hex value not represent the decimal number. Thank you.

Best Answer
Best Answer
Answered By 0 points N/A #154441

Want to find correct hex value for tab in cobol

qa-featured

 

Hey,
Yes, it is possible to represent a decimal number into hex value.
Though COBOL easily handles the standard numeric and text data as well, but you can also use COBOL to display hexadecimal values as well. Hexadecimal numbers also called as hex are base-16 format used to represent all data inside a computer. Hex is handy for debugging the programs; by, you can identify the contents of memory exactly. 
 
COBOL have a feature which generates a listing called as “hex dump” if a program crashes. The hex dump is hexadecimal display of all the variables in the program’s memory along with a map of where variables exist in memory. As this works only and only when the program terminates abnormally and also because it displays all of the program’s memory, you will be able to use this technique for displaying a few hex values when running the program normally.
I hope this will solve your issue.
Thanks & Regards,
Gillam Janetj
 

Related Questions