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
how to access the file from prodution from changeman tool and to submit a file to production
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What are the different rules for performing sort operation?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
) what is the difference between AID and HANDLE AID?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What are the cobol coding sheets?
what is difference between cobol and cobol/400
Name some of the examples of COBOl 11?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
how can i see junk values in dclgen or in hostvariable of comp ?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Have you used comp and comp-3 in your project? And how?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?