which is better comp or comp-3 in terms of memory
utilization?

Answers were Sorted based on User's Feedback



which is better comp or comp-3 in terms of memory utilization?..

Answer / saravanan s

See Meenakshi,It is depends on the Requirement,

So the Conclusion is

Take a look on the table

COMP COMP-3
(in bytes) (in bytes)

S9(01) 2 1
S9(02) 2 2
S9(03) 2 2
S9(04) 2 3
S9(05) 4 3
S9(06) 4 4
S9(07) 4 4
S9(08) 4 5
S9(09) 4 5
S9(10) 8 6
S9(11) 8 6
S9(12) 8 7
S9(13) 8 7
S9(14) 8 8

like that.........

Cheers,
Saravanan

Is This Answer Correct ?    16 Yes 1 No

which is better comp or comp-3 in terms of memory utilization?..

Answer / ipl

comp-3

Is This Answer Correct ?    16 Yes 5 No

which is better comp or comp-3 in terms of memory utilization?..

Answer / santy

COMP is better that COMP-3 in terms of memory utilization.

check out below examples.

COMP COMP-3
(in bytes) (in bytes)


S9(04) 2 3
S9(08) 4 5
S9(09) 4 5
S9(10) 8 6
S9(11) 8 6
S9(12) 8 7
S9(13) 8 7
S9(14) 8 8

hope it is useful.

Is This Answer Correct ?    7 Yes 4 No

which is better comp or comp-3 in terms of memory utilization?..

Answer / ravi kiran

for lower boundaries comp is better , for higher boundaries
comp-3 is better.
in real time mostly comp3 is used

Is This Answer Correct ?    2 Yes 0 No

which is better comp or comp-3 in terms of memory utilization?..

Answer / guest1

COMP values are stored as Binary format. So it is good to
use COMP.

Is This Answer Correct ?    2 Yes 1 No

which is better comp or comp-3 in terms of memory utilization?..

Answer / i go crazy

COMP uses less memory compared to COMP-3 at word boundaries.
Ex: s9(04) COMP - 2 bytes.
s9(04) COMP-3 - 3 bytes.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More COBOL Interview Questions

Can you REWRITE a record in an ESDS file? Can you DELETE a record from it?

6 Answers   ABC, IBM, Mphasis, Wipro,


how to create temporary data set in jcl? what is the use?

3 Answers   Cap Gemini, Temenos,


consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAGE SECTION 01 W-REC PIC X(90) ........ PROCEDURE DIVISION FIRST-PARA ....... READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG which of the following is true with respect to the above? a.REC-1 will contain nothing and W-REC will contain the contains of the record read b.REC-1 and W-REC contain the same data c.syntex is invalid and error will occur d.REC-1 and W-REC must be of same size

1 Answers   TCS,


What rules are followed by the search verb.

0 Answers  


What is the default value of DISP for temp datasets

5 Answers   IBM,






What is Static and Dynamic linking ?

3 Answers  


i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS

4 Answers   Infosys,


What care has to be taken to force program to execute above 16 Meg line?

1 Answers  


If I want to increase the Limit in GDG. What should I do?

2 Answers   IBM,


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

0 Answers   IBM,


When is inspect verb is used in cobol?

0 Answers  


Which division and paragraphs are mandatory for a COBOL program?

0 Answers  


Categories