IBM COBOL400 Question:
What is the difference between comp & comp-3?
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
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
Previous Question | Next Question |
How array can be declare in cobol? | What is comp? |