How to define variable 9(20) in COBOL, because compiler
does not allow us to declare variables with Pic 9(18). Can
anyone please let me know the answer... I know one answer
to this question which is to use Compiler option Arith
(Extend) during Compilation. It extends the maximum limit
to 9(32)..Just wanted to know if there is any other way to
extend this?
Answer Posted / sachin borase
Use the varchar.
01 var-char-variable.
49 ws-letch s9(4) comp.
49 ws-text 9(20).
| Is This Answer Correct ? | 2 Yes | 9 No |
Post New Answer View All Answers
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Which mode is used to operate the sequential file?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What are the access modes of START statement?
What is length is cobol?
Give some examples of command terminators?
Write the code to count the sum of n natural numbers.
In COBOL programming, what is PERFORM? What is VARYING?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How you can read the file from bottom?
Difference between cobol and cobol-ii?
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?