Home > Software > Mainframe > Cobol
Interview Questions   Tutorials   Discussions   Programs   

Cobol - How is sign stored in a comp-3 field?

asked mar September 6, 2014 01:02 PM  

How is sign stored in a comp-3 field?


1 Answers

answered By Mswami   0  

It is stored in the last nibble.

For example if your number is +100, it stores hex 0C in the last byte, hex 1C if your number is 101, hex 2C if your number is 102, hex 1D if the number is -101, hex 2D if the number is -102 etc...

   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!