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

Cobol - What is the difference between COMP & COMP-3 ?

asked mar August 3, 2014 01:56 AM  

What is the difference between COMP & COMP-3 ?


1 Answers

answered By Mswami   0  
Comp refers to binary representation which occupies half word(16bits) or full word(32bits) and Comp-3 refers to packed decimal representation  where one digit occupies half a byte ie, a nibble and the sign is stored as the rightmost half -a -byte. C or F represents the positive sign and D represents the negative sigh in hexadecimal format.
   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!