how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?
Answer Posted / shiva
COMP1-IT OCCUPIES 4 BYTES TO STORE UP TO 18 CHARACTERS
COMP2-IT OCCUPIES 8 BYTE TO STORE UP TO 18 CHARACTERS
COMP3-IT OCCUPIES HALF BYTE FOR EACH CHARACTER AND HALF BYTE
FOR SIGN...FOR ODD DATA LENGTH SO IT OCCUPIES
(15/2=7.5)+(1/2)=7.5+0.5=8 BYTES.
Is This Answer Correct ? | 21 Yes | 1 No |
Post New Answer View All Answers
Have you used comp and comp-3 in your project? And how?
What is link edit in cobol?
What the difference is between continue and next sentence?
What is rmode(24)
In COBOL programming, what is PERFORM? What is VARYING?
What are the cobol coding sheets?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
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
What is the LINKAGE SECTION used in COBOL?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How many bytes S(8) comp field occupy and its maximum value?
What is the Purpose of Pointer in the string?
Name the sections present in data division.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Difference between cobol and cobol-ii?