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 / ravi patnam

Maximum value for the N is 99999999. For example see below:

$set ans85 comp
IDENTIFICATION DIVISION.
PROGRAM-ID. "test".
AUTHOR. RAVI PATNAM.
DATE-WRITTEN. 20-02-2009.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
WORKING-STORAGE SECTION.
01 N pic 9(9) value 0.
01 test-occurs occurs 0 to 99999999
depending on N.
02 test-no pic 9(2).

PROCEDURE DIVISION.
MAIN.
move 99999999 to N.
move 11 to test-no(N).
display test-no(N).
stop run.

Is This Answer Correct ?    5 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which mode is used to operate the sequential file?

1206


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1407


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

2401


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

1249


what is the use of outrecord?

2222


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17881


Write the code implementing the perform … varying.

1075


What is the default value(s) for an initialize and what keyword allows for an override of the default?

1213


What is Pic 9v99 Indicates in COBOL?

1264


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1328


Name some of the examples of COBOl 11?

3143


Which Search verb is equivalent to PERFORM…VARYING?

1043


i want a program using by if, evaluate , string, unstring, perform, occurs?

4722


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2395


) How do u handle errors in BMS macro

2052