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

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

1640


What is comp-1 and comp-2?

764


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 arrays can be defined in COBOL?

663


What are the different rules to perform a Search?

619






What is the difference between Call and a Link?

700


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

1614


What is the difference between Global and External Variables?

666


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

676


How can you get the ksds file records into your cobol program?

644


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

2763


What is amode(31)

724


what are decleratives in cobol?

1827


Are you comfortable in cobol or jcl?

643


In which area will you utilize 88 level items in cobol?

722