which one is the best of com and com-3.using of real time ?
Answers were Sorted based on User's Feedback
Answer / paray2x
Dear Friends,
I'm sorry about my previous answer. COMP-3 is always
efficient.
when COBOL uses COMP, it tries to align fields along
boundaries which is less efficient in retrieval and
computation.
| Is This Answer Correct ? | 10 Yes | 2 No |
Answer / praveen
when ever the data size is at higher boundries comp is best.
when ever the data size is at lower boundries comp-3 is
best.
lower boundries higher boundries
s9(01) s9(04) 2 bytes
s9(05) s9(09) 4bytes
s9(10) s9(18) 8bytes
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / jagan
Parry , While using COMP , the data can be retrieved
quicly , that is the advantage os storing data along word
boundaries .
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / praveen
for comp3 the caluclation of memory goes
for the datasize is even we go for formula n/2.
for the datasize is odd we go for formula n+1/2.
ex; s9(5) means 5 is odd 5+1/2=6/2=3
it takes 3 bytes of memory.
for comp s9(9) it takes 4 bytes of memory.
so here depending on the datasize we can say the
best.
so in above ex; we say comp3 is best because there is a
supression of memory i.e 3bytes compared to comp 4 bytes .
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / paray2x
In terms of Storage, it will be comp-3 and for Arithmetic
computations, it will be comp
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / anuhya
comp3 is best for higher boundaries
comp is best for lower boundaries
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / pk
what is this higher boundaries and lower boundaries. please
explain
thanks
| Is This Answer Correct ? | 0 Yes | 0 No |
i have n records in one file and in this file there is some fields and i want to count that how many sharma in my file so plz give the coding that how we read sharma ?
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?
01 xxx pic 9(4). 01 yyy pic 9(6). move 123456 into yyy. move yyy to xxx. display yyy. what would be the value of yyy
How many bytes will be allocated for the following record description entries? 01 REC-A. 05 A PIC S9(4). 05 B PIC XXXBXXX. 05 C PIC ____9.99. 05 D PIC S9(5) COMP-3. 05 E PIC 9(3) COMP.
16 Answers IBM, TCS,
Give some examples of command terminators?
What is reference modification? What is UNION in sql and syntax? What is the difference between GDGS and VSAM? Which is prefer one? What is processing groups in endevor?
after udatingg first 110 rows, my job abends. now how do i change my cobol program so that when i restart the Job it will start updating from 111th row ( i.e in next run I di=ont want to update those 110 rows which are already been updated in the first run before job abend)
how to convert vsam table into DB2 table?
How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp
S9(5)V9(2) occupies how many bytes memory ?
what is subscript in cobol?give realtime example?
What is static and dynamic call in cobol?