Suppose i want to declare a binary comp fild of 7 byte .how
to write?
Answer Posted / sudheer
COmp will take 2byte pic size-1-4
4byte pic size 5-9
8byte pic size 10-18
if we use comp-3 it will take n/2+1/2 byte extra for sign if
pic is odd no.if it is even it will take n/2.
my answer is 8 bytes
pls let me know if any thng wrong
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is report-item in COBOL?
How to know whether the module is dynamical or statistical?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Differentiate between structured cobol programming and object-oriented cobol programming.
IF I mention stop run in CICS what happens?
how do you reference the rrds file formats from cobol programs
How do define dynamic array in cobol.
What is the difference between comp and comp-3 usage?
Name the sections present in data division.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How many bytes S(8) comp field occupy and its maximum value?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
How do u write test cases?
What is rmode(24)