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
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How do you differentiate between cobol and cobol-ii?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
What is the difference between PIC 9.99 and PIC9v99?
What kind of error is trapped by on size error option?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What rules are followed by the search verb.
How many bytes S(8) comp field occupy and its maximum value?
When is inspect verb is used in cobol?
how to access the file from prodution from changeman tool and to submit a file to production
Can a Search can be done on a table with or without Index?
What is amode(31)
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Which mode is used to operate the sequential file?
What is the local-storage section?