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 syntax of sort?

0 Answers  


WHAT ALL THE CONDITIONES REQUIRED FOR USING OPEN OPCODE ON A FILE?

2 Answers  


What is output procedure?

0 Answers  


how array can be declare in cobol?

6 Answers  


What is the actual use of fillers?

0 Answers  






Explain the input procedure?

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,


Define redefine and its syntax?

0 Answers  


What is redefine?

0 Answers  


When search all is used in cobol program without sorted input data

3 Answers  


How can i change the below code in SQL to cobol/400? EXEC SQL SELECT COUNT(*) INTO : WS-COUNT FROM Db file WHERE Field 1 = : WS-VAR AND Field 2 = : WS-USERID END-EXEC

2 Answers   HP,


How to update data area in cobol 400 program?

0 Answers  


Categories