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
What kind of error is trapped by on size error option?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Which mode is used to operate the sequential file?
How do we get current date from system with century in COBOL?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What are the different open modes available in cobol?
how do you reference the ksds vsam file formats from cobol programs
What is amode(31)
What is a scope terminator give example?
What is the use of intialize verb?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What are the different rules of SORT operation?
What is cobol?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?