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

What is comp-1 and comp-2?

756


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

639


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3713


What is the difference between binary search and sequential search?

638


Can we redefine the field of x(200) to less than 200?

814






EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2052


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1697


What is inspect in cobol ?

797


What is the difference between goback, stop run and exit program in cobol?

920


What rules are to be followed while using the corresponding options?

632


How many sections are there in data division in COBOL?

676


Name the divisions, which are available in a cobol program?

681


how to move the records from file to array table. give with code example

2216


What is the difference between PIC 9.99 and PIC9v99?

771


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1520