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 |
What will happen if you code GO BACK instead of STOP RUN in a stand-alone COBOL program i.e. a program which is not calling any other program ?
How can we know that cobol program is using report file or simple file....?
waht is inspect verb? where it can be in real time?
study the data discriptions and answer the questions given below i)01 ORDER RECORD 05 OUT-HEADER PIC X(50) 05 ITEM-COUNT PIC 99 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING ON ITEM-COUNT ii)01 NAME-AND-ADDRESS 05 N-AND-A-LINE OCCURES 5 05 LINE-LENGTH PIC P9 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON LINE-LENGTH iii)01 SALES-LIST 05 SALESMAN-COUNT PIC 99 05 SALES PIC 9(6) OCCURS 1 TO 100 DEPENDING ON SALESMAN-COUNT iv)01 ORDER-RECORD 05 NO-OF-BRANDS PIC 99 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON NO-OF-BRANDS which of the following is true? a.i) and iii) are valid b.i) and iv) are valid c.i) and iii) are not valid d.all are valid
what is the difference between perform varying and perform until
What is the difference between SEARCH and SEARCH ALL?
How to find whether a Flat file is empty or not without Reading a file in COBOL Program. (not using JCL)
how you will define variables length in cobol.
I hv ten records in ps file and i hv say some 15 records in vsam file .i hv empno and age in ps file n empno,empname,dept n desig in vsam file. i hv 2 read the ps file n check wid matching empno in vsam file and then insert all fields from ps and vsam into db2 table....plz help in writin the procedure division
Which is the best IBM mainframe Training Institute in Ameerpet, Hyderabad
what is the difference between PA & PF keys?
What are the different rules of SORT operation?