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

Explain the input procedure?

0 Answers  


What are fillers? What is the actual use of fillers? With mall/simple example?

0 Answers  


What is redefine?

0 Answers  


Explain the output procedure?

0 Answers  


What is the syntax of sort?

0 Answers  






what is the difference between comp & comp-3?

4 Answers  


write a cobol program to display prime numbers between 1 to 100?

5 Answers   Cap Gemini, NISA,


i have two programs 1.cobol program 2.copy book program can i move bouth program in to the production or single single program?

1 Answers   UHG,


can i anyone tell me how to use copybooks in cobol

1 Answers  


Define perform?

0 Answers  


Code how to read 5th element of the array?

2 Answers   CGI,


What is comp?

0 Answers  


Categories