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

System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

2053


Can you please let me know the centre name of INS certification in Kolkata.

2226


Explain how to differentiate call by context by comparing it to other calls?

1167


What is the difference between Call and a Link?

1175


What type of SDLC u followed? Why?

1984


What is perform what is varying?

1139


What are the different rules of SORT operation?

1123


How are the next sentence and continue different from each other?

1278


Differentiate between structured cobol programming and object-oriented cobol programming.

1128


Which division and paragraphs are mandatory for a COBOL program?

1252


how do you reference the printer file formats from cobol programs

1194


What is the difference between next sentence and continue in cobol programing language?

1196


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

1278


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

7517


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1203