IBM COBOL400 Question: Download IBM COBOL400 PDF

What is the difference between comp & comp-3?

Tweet Share WhatsApp

Answer:

Comp : Store the data in Binary formate, it will take less
space compare to Comp-3.

Comp-3 : Store the data in Pack decimal,it will take more
space compare to Comp.

Example :

S9(18)

Comp : takes 4 bytes
Comp-3: takes 10 bytes

Download IBM COBOL400 PDF Read All 19 IBM COBOL400 Questions
Previous QuestionNext Question
How array can be declare in cobol?What is comp?