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


Please Help Members By Posting Answers For Below Questions

How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

958


What is report-item in COBOL?

711


How to know whether the module is dynamical or statistical?

656


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

711


Differentiate between structured cobol programming and object-oriented cobol programming.

669






IF I mention stop run in CICS what happens?

1896


how do you reference the rrds file formats from cobol programs

801


How do define dynamic array in cobol.

671


What is the difference between comp and comp-3 usage?

681


Name the sections present in data division.

701


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

720


How many bytes S(8) comp field occupy and its maximum value?

1634


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

780


How do u write test cases?

1638


What is rmode(24)

680