which one is the best of com and com-3.using of real time ?
Answer Posted / 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 |
Post New Answer View All Answers
What are declaratives and what are their uses in cobol?
Difference between array and sub-script ?
What type of SDLC u followed? Why?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
explain sorting techniques in cobol program?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How do you get the data to code the BMS macro?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is the difference between external and global variables in COBOL?
What is the difference between goback, stop run and exit program in cobol?
Difference between cobol and cobol-ii?
How do you reference the following file formats from cobol programs?