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

Define sort?

0 Answers  


what is INPUT PROCEDURE and OUTPUT PROCEDURE?

2 Answers  


Explain the syntax of sort?

0 Answers  


Code how to read 5th element of the array?

2 Answers   CGI,


Explain the difference between search and searchall?

0 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 COBOL helps Mainframe to maintain large records ???

1 Answers   Satyam,


what is the difference between section,paragraph and sentences

4 Answers  


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

5 Answers   CGI,


Deleting a record from a Sequential file.

2 Answers   Polaris,


Explain what all the conditiones required for using open opcode on a file?

0 Answers  


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

2 Answers  


Categories