Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 / 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 / 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

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

How to Pass table from a cobol program to another cobol program and how to use that table in called program

8 Answers   Patni, SunGard,


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

0 Answers   IBM,


can we print comp 3 stmts how ?

3 Answers   Accenture, TCS,


How may divisions are there in JCL-COBOL?

5 Answers   IBM,


What are all the divisions of a COBOL program?

0 Answers  


can any one help -s806

6 Answers  


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

2 Answers   IBM, Steria,


what will happen if i give program name and member name as different? program runs successful or w'll abend?

5 Answers   CTS,


How do we get current date from system with century?

2 Answers  


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

1 Answers   TCS,


How many types of sorts are there in cobol?

5 Answers   Cap Gemini,


In COBOL "BEFORE" advancing is there or not ?

3 Answers  


Categories