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
What are the different open modes available in cobol?
What is rmode(any) ?
Give some examples of command terminators?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
how do you reference the fixed unblock file formats from cobol programs
Write down the divisions of cobol program?
What is redefines clause in COBOL?
What is an in line perform? When would you use it? Anything else you wish to say about it.
How to print 10 to 1 if the input have only 10 digit number?
What is a SSRANGE and NOSSRANGE?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
How can you get the ksds file records into your cobol program?
how to convert the recors form vsam file to db2 table tru file aid
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How do you define a variable of comp-1 and comp-2?