IBM COBOL400 Question: Download IBM COBOL400 PDF

What is comp?

Tweet Share WhatsApp

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 PDF Read All 19 IBM COBOL400 Questions
Previous QuestionNext Question
What is the difference between comp & comp-3?What is PERFORM? and its types?