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
How to know whether the module is dynamical or statistical?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What rules are to be followed while using the corresponding options?
How do you define a variable of comp-1 and comp-2?
Are you comfortable in cobol or jcl?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What do you understand by psb and acb?
Write some characteristics of cobol as means of business language.
Explain the configuration section of a cobol program with examples of syntax.
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
Why occurs cannot be used in 01 level in COBOL?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is the utilization of copybook in cobol?
What are the pertinent COBOL commands?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?