1)what is the maximum limit for occurs?
Eg: 01 A PIC X(10) OCCURS N TIME.
What is the max value for N?
Answer Posted / julyo
In Cobol 11 there are a limit of 16,711,568 Bytes and 7 positions of numbers.
For example:
Example 1
05 WTAB-LOTE OCCURS N TIMES
INDEXED BY WIND-LOTE.
10 WTAB-LOTE-REG PIC X(250).
In this case N will be: N=16,711,568/250 , N=66846, and the compiler will accept '99999'
Example 2
05 WTAB-LOTE OCCURS N TIMES
INDEXED BY WIND-LOTE.
10 WTAB-LOTE-REG PIC X(003).
In this case N will be: N=16,711,568/3 , N=55770522, and the compiler will accept '9999999', but this value is less than N and for this second case the limit is related to the number of the positions (7).
But for sure there are the rest of the space in the working section. In the examples was assumed there aren't any other variable in the working.
I hope helped you
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Can you please let me know the centre name of INS certification in Kolkata.
Explain how to differentiate call by context by comparing it to other calls?
What is the difference between Call and a Link?
What type of SDLC u followed? Why?
What is perform what is varying?
What are the different rules of SORT operation?
How are the next sentence and continue different from each other?
Differentiate between structured cobol programming and object-oriented cobol programming.
Which division and paragraphs are mandatory for a COBOL program?
how do you reference the printer file formats from cobol programs
What is the difference between next sentence and continue in cobol programing language?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
how to access the file from prodution from changeman tool and to submit a file to production
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?