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 |
In an array processing what is the thing that can be done by using subscripts but not by using index
How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. stop run. para1: move 10 to a.
What is SQL Code -904 and -903 in DB2 And how to handle it?
is it possible to pass an SQL query inside a jcl which is inside a cobol program?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
how to know that the file has 300 records how to acess it?
What is COMP-1? COMP-2?
Explain Restart Logic in Cobol?
The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above
When the working storage variables get allocated? a.At Compile time b.At starting of the run time c.At end of the run time. d.None of these
I have a sequential file of 100 records. How do I load the records into a two dimensional array ?
what is the difference b/w level no.01 & level no.77?