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
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What is the difference between comp and comp-3?
How many bytes S(8) comp field occupy and its maximum value?
What is the utilization of copybook in cobol?
What is comp-1 and comp-2?
How do you get the data to code the BMS macro?
i want a program using by if, evaluate , string, unstring, perform, occurs?
Which is not true about evaluate statement
What is amode(31)
What are declaratives and what are their uses in cobol?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What are the different rules to perform a Search?
What are the cobol coding sheets?