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
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
what is search and searchall?what is the diffrence between them?give an best example?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
how do you reference the fixed unblock file formats from cobol programs
What rules are followed by the search verb.
What is length is cobol?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
Why did you choose to work with ibm mainframe cobol programming?
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?
State the various causes of s0c1, s0c5 and s0c7.
What is the default value(s) for an initialize and what keyword allows for an override of the default?
) what is the difference between AID and HANDLE AID?