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
How do define dynamic array in cobol.
Can a Search can be done on a table with or without Index?
Whats the difference between search & search ALL?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
Can we change the password using ALTER? anyone tried and changed?
How you can characterize tables in cobol?
What is the difference between comp and comp-3 usage?
Why did you choose to work with ibm mainframe cobol programming?
What are the access modes of START statement?
What is the difference between next sentence and continue in cobol programing language?
What are the various section in data division and briefly explain them.
Write a program that uses move corresponding.
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What are the cobol coding sheets?
how do you reference the variable block file formats from cobol programs