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 / vikram
01 VAR-1 PIC 9(18).
change the datatype then it's possible
01 VAR-1 PIC x(20).
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write the code to count the sum of n natural numbers.
example for sub strings ? and refernce modifications whit output pls
How arrays can be defined in COBOL?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Which is not true about evaluate statement
how do you reference the rrds file formats from cobol programs
What is report-item in COBOL?
What is a SSRANGE and NOSSRANGE?
What is the difference between comp and comp-3 usage?
Can a Search can be done on a table with or without Index?
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?
What is inspect in cobol ?
What is rmode(24)
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?