Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

how to access the file from prodution from changeman tool and to submit a file to production

7558


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1179


What is the Purpose of POINTER Phrase in STRING command in COBOL?

1266


What are the different rules for performing sort operation?

1232


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

9112


) what is the difference between AID and HANDLE AID?

2164


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

1130


What are the cobol coding sheets?

1285


what is difference between cobol and cobol/400

22939


Name some of the examples of COBOl 11?

3148


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2478


how can i see junk values in dclgen or in hostvariable of comp ?

3005


What is the difference between a binary search and a sequential search what are the pertinent cobol?

1146


Have you used comp and comp-3 in your project? And how?

2488


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

1224