Suppose i want to declare a binary comp fild of 7 byte .how
to write?

Answer Posted / i go crazy

Hi Suv,

If u code S9(14) COMP, it will take double word i.e. 8
bytes. Below is the size of comp variables.
S9(01) - S9(04) : 2 BYTES.
S9(05) - S9(09) : 4 BYTES.
S9(10) - S9(18) : 8 BYTES.

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5673


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

627


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1228


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1798


What is report-item in COBOL?

704






Give some examples of command terminators?

751


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

734


How do u write test cases?

1633


Explain the configuration section of a cobol program with examples of syntax.

655


What is the difference between a binary search and a sequential search what are the pertinent cobol?

729


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

663


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

681


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1607


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2718


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

2759