Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


which one is the best of com and com-3.using of real time ?

Answers were Sorted based on User's Feedback



which one is the best of com and com-3.using of real time ?..

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

which one is the best of com and com-3.using of real time ?..

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

which one is the best of com and com-3.using of real time ?..

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 0 No

which one is the best of com and com-3.using of real time ?..

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

which one is the best of com and com-3.using of real time ?..

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

which one is the best of com and com-3.using of real time ?..

Answer / anuhya

comp3 is best for higher boundaries
comp is best for lower boundaries

Is This Answer Correct ?    0 Yes 0 No

which one is the best of com and com-3.using of real time ?..

Answer / pk

what is this higher boundaries and lower boundaries. please
explain

thanks

Is This Answer Correct ?    0 Yes 0 No

Post New Answer



More COBOL Interview Questions

if you give cylinder(1,1)how many cylinders it will be allocate?

3 Answers   Hewitt,


There is a production file which has millions of records in it.The program that uses it ends up with an SOC7 abend.It is sure that the abend is due to some invalid data in the file.Is there any way to debugg the SOC7 abend with out giving displays? I need the record which is cause for the abend.

8 Answers   Danske, iGate,


which generation language is cobol

4 Answers   Kanbay,


What is the default value of DISP parameter?

3 Answers   IBM,


Why did you choose to work with ibm mainframe cobol programming?

0 Answers  






How do you define a variable of comp-1 and comp-2?

0 Answers  


what happens of we dont give time stamp in precompilation process

2 Answers  


i have two file one is ksds another one is esds i want store matching records in flat file how to you matching.

2 Answers   Wipro,


Name the sections present in data division.

0 Answers  


01 a pic s9(5) occupies how many bytes ?

9 Answers   Wipro,


how to move the records from file to array table. give with code example

0 Answers   ADP, Syntel,


Syntax for JCLLIB & JOBLIB???

1 Answers  






Categories