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
What is the difference between goback, stop run and exit program in cobol?
In COBOL, what is the different between index and subscript?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Discuss about changing dataset name in proc.
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is the difference between PIC 9.99 and 9v99 in COBOL?
Explain about different table spaces.
How do get the result of your program directly on your pc?
Write a program to enter and display the names of students in a class using the occurs clause.
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What are the cobol coding sheets?
Can we change the password using ALTER? anyone tried and changed?
What are the different open modes available in cobol?