COBOL 14 - Difference showing Comp & Comp1, Comp2 & Comp 3

COMP-1, COMP-2
These are coded without PIC clause and mainly used for constants.
COMP1: will store data in 4 bytes, floating point form and result the rounded value.
COMP2 : will store the data in 8 bytes, in Hexadecimal form and results more precise value.
COMP3 : It is a packed decimal usage and which occupies one digit/ half byte of the storage space.
It allows decimal values, which does not occupies any extra storage space.


Want To learn more see the video



Previous
Next Post »