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

How we can update data area in cobol 400 program?

12 Answers   Accenture,


can i anyone tell me how to use copybooks in cobol

1 Answers  


How to detect record is locked in cobol/400?

0 Answers  


define comp?

2 Answers  


Explain how to update data area in cobol 400 program?

0 Answers  






How to Convert 2010/02/11 to m/dd/yyy.. with string and without string if any other method... code

5 Answers   CGI,


Explain the input procedure and output procedure?

0 Answers  


I like to know if possible to use %TRIM or any statement with prefiv "%" like RPG ile programs. thanks

0 Answers  


Explain how to convert 2010/02/11 to m/dd/yyy.. With string and without string if any other method... Code?

0 Answers  


Explain the difference between search and searchall?

0 Answers  


Define redefine?

0 Answers  


What is perform?

0 Answers  


Categories