Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


what is the difference between comp & comp-3?

Answers were Sorted based on User's Feedback



what is the difference between comp & comp-3?..

Answer / cyjil

hellow sainath,
the comp answer is wrong... the correct answer is if
comp is using first 1 to 4 digits 2 bytes 5 to 9 digits 4
bytes and 10 to 18 digits 8 bytes allocating... k...

Is This Answer Correct ?    22 Yes 0 No

what is the difference between comp & comp-3?..

Answer / sainathbk

hello Cyjil,

Thanks for correcting me.

you right

S9(18) comp

takes 8 bytes

Is This Answer Correct ?    8 Yes 0 No

what is the difference between comp & comp-3?..

Answer / sainath

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

Is This Answer Correct ?    6 Yes 11 No

what is the difference between comp & comp-3?..

Answer / mithun paul

Comp is equivalent to Binary and Comp-3 is equivalent to
Packed Decimal.Comp takes 1 Byte and Comp-3 takes 2 Bytes.

Is This Answer Correct ?    0 Yes 13 No

Post New Answer

More COBOL400 Interview Questions

Trying to help a friend... How do you code screen I/O without a DDS? I know it can be done, because for a short time, I worked for a company that did it. It was just too long ago for me to remember what was involved.

1 Answers  


Explain the syntax of redefine?

0 Answers  


What is sort? And its syntax?

0 Answers  


What is redefine?

0 Answers  


Explain the difference between comp & comp-3?

0 Answers  






Code how to read 5th element of the array?

2 Answers   CGI,


What is comp?

0 Answers  


Explain the difference between search and searchall?

0 Answers  


what is the difference between comp & comp-3?

4 Answers  


How to detect record is locked in cobol/400?

0 Answers  


what is PERFORM? and its types?

7 Answers  


How we can update data area in cobol 400 program?

12 Answers   Accenture,


Categories