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 / abc
try with this:
01 VARIABLE-ABC.
03 VAR-1 PIC 9(18).
03 VAR-2 PIC 9(2).
This may work, please try and see.
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
Define static linking and dynamic linking.
) How do u handle errors in BMS macro
What is the difference between goback, stop run and exit program in cobol?
How you can read the file from bottom?
What is difference between static and dynamic call in cobol?
Write the code to count the sum of n natural numbers.
how do you reference the variable block file formats from cobol programs
What is length is cobol?
What are 77 levels used for?
Can we change the password using ALTER? anyone tried and changed?
What is the utilization of copybook in cobol?
HOw can I get the negative sign while deduct high value from low value
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?