IBM COBOL400 Question:
Download Questions PDF

What is comp?

Answer:

"COMP" in Cobol = Binary storage format(if -ve bit is ON,
if +ve bit is OFF)
COMP-1 = Single precision floating point. Uses 4 bytes.
COMP-2 = Double precision floating point. Uses 8 bytes.
COMP-3 = packed decimal format. Uses 4 bytes.


Example 01 WS-VAR USAGE COMP-1.

Download IBM COBOL400 Interview Questions And Answers PDF

Previous QuestionNext Question
What is the difference between comp & comp-3?What is PERFORM? and its types?