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 |
s9(18) comp-3:: What is the size of memory it takes internally?
write a program to eliminate duplicate records in a input file and send them to output file.
can we write paragraph in area B .....
In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)
select TURE Statement(s) aboUt eject statemenet in cobol? a)The eject statememnt must be the only statement on the line b.It causes the program to edit abnormally c. eject statement can be written in either area A or area B d. specifies that the next source statement is to be printed at Top of the next page e.The EJECTstatement has no effect on the compilation of the source program itself
How to read records from flat file in reverse order through COBOL program?
14 Answers Accenture, Broadridge, IBM, MAT, Polaris, SPIC, Syntel, TCS, Wipro,
how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?
In CICS/VSAM every file that is accessed should be defined in FCT. we have CICS READ, WRITE, BROWSE commands for VSAM files. How does it work with DB2 tables. It know it has to do with the plan. Please expain with examples.
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
what is meant by binary search?
How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1: move 20 to a.
What is the Importance of GLOBAL clause According to new standards of COBOL?