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 |
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
What rules are followed by the search verb.
What is the default value of DISP for temp datasets
What is Static and Dynamic linking ?
i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS
What care has to be taken to force program to execute above 16 Meg line?
If I want to increase the Limit in GDG. What should I do?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
When is inspect verb is used in cobol?
Which division and paragraphs are mandatory for a COBOL program?