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


Please Help Members By Posting Answers For Below Questions

How to know whether the module is dynamical or statistical?

656


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

691


What rules are to be followed while using the corresponding options?

641


How do you define a variable of comp-1 and comp-2?

705


Are you comfortable in cobol or jcl?

643






What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

681


What do you understand by psb and acb?

666


Write some characteristics of cobol as means of business language.

619


Explain the configuration section of a cobol program with examples of syntax.

660


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

859


Why occurs cannot be used in 01 level in COBOL?

719


what is amode(24), amode(31), rmode(24) and rmode(any)?

705


What is the utilization of copybook in cobol?

657


What are the pertinent COBOL commands?

2626


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

720