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

What are different file OPEN modes available in COBOL?

4 Answers   Sun Life,


Can you please let me know the centre name of INS certification in Kolkata.

0 Answers  


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

3 Answers   Cap Gemini, Temenos,


how to crack cts interview apps? NOVEMBER 21 2010

2 Answers   CTS,


Describe the cobol database components?

0 Answers  






In COBOL "BEFORE" advancing is there or not ?

3 Answers  


subscript and index r not coded in u r application program what will happen?

2 Answers  


How many bytes do a s9 (7) comp-3 field occupy?

1 Answers  


If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??

4 Answers   Accenture,


can u plz expain me how to declare dynamic array? what is the meaning of depending on clause in dynamic array?

3 Answers   IBM, Satyam,


i have variable record in the 5th, i want to sort from 5th filed ? how ?

2 Answers   TCS,


SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.

2 Answers   Wipro,


Categories