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

Which mode is used to operate the sequential file?

671


i need a small 3d program using inline and outline.

1640


What are the pertinent COBOL

2046


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

710


how to convert the recors form vsam file to db2 table tru file aid

2765






can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1908


How do you reference the following file formats from cobol programs?

698


what is difference between cobol and cobol/400

21571


How to print 10 to 1 if the input have only 10 digit number?

814


how do you reference the ksds vsam file formats from cobol programs

669


What is the problem of ordered sequential files access?

704


In COBOL, what is the different between index and subscript?

763


What is the difference between PIC 9.99 and PIC9v99?

783


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

681


What guidelines should be followed to write a structured cobol prgm?

674