Suppose i want to declare a binary comp fild of 7 byte .how
to write?
Answer Posted / suv
If your question is like this:::
Suppose i want to declare a binary COMP field of storage 7
bytes .how
to write?
Answer is:
PIC S9(14) COMP.
storage byte required by COMP field will = half of the
digit specified in the PIC clause.
Just an info....
storage byte required by COMP3 field will = ( half of the
digit specified in the PIC clause)+1
Please correct me if I am wrong.
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
Name some of the examples of COBOl 11?
What is the difference between goback, stop run and exit program in cobol?
Why did you choose to work with ibm mainframe cobol programming?
Which mode is used to operate the sequential file?
What is the difference between perform … with test after and perform … with test before?
Whats the difference between search & search ALL?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
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?
How do you reference the following file formats from cobol programs?
How do you define a variable of comp-1 and comp-2?
what are decleratives in cobol?
Describe the cobol database components?
How arrays can be defined in COBOL?
Name the divisions, which are available in a cobol program?
Can we redefine the field of x(200) to less than 200?