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 you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
Name the sections present in data division.
how do you reference the fixed unblock file formats from cobol programs
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
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
how to refer the data field?
Which division and paragraphs are mandatory for a COBOL program?
) how do u code after getting data?
How to remove 2 duplicate records and copy only one using job control language?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How many sections are there in data division in COBOL?
A table has two indexes defined. Which one will be used by the SEARCH?
What is a report item?
State the various causes of s0c1, s0c5 and s0c7.
What is a scope terminator give example?