which is better comp or comp-3 in terms of memory
utilization?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / guest1
COMP values are stored as Binary format. So it is good to
use COMP.
Is This Answer Correct ? | 2 Yes | 1 No |
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 |
What are different file OPEN modes available in COBOL?
Can you please let me know the centre name of INS certification in Kolkata.
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
Describe the cobol database components?
In COBOL "BEFORE" advancing is there or not ?
subscript and index r not coded in u r application program what will happen?
How many bytes do a s9 (7) comp-3 field occupy?
If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??
can u plz expain me how to declare dynamic array? what is the meaning of depending on clause in dynamic array?
i have variable record in the 5th, i want to sort from 5th filed ? how ?
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.