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...

what is the difference between occurs and occurs depending
on? i dont think so there is the difference in
storage..then why we should use occurs depending on?

Answer Posted / venkat

when we define cobol table with OCCURS, it is of fixed
storage and length. The program execution will take the
total storage irrespective of utiliztaion. Where as table
degined with OCCURS DEPENDING ON provides flexibility to
the developers to choose length of table dynamically.
Length of below table is based on WS-OBJ value.

WS-SUB OCCURS 1 TO 5 TIMES DEPENDING ON WS-OBJ PIC X(2).

For example if you want to stoge employee detail in an
cobol table and you are not aware of number of employees at
the time of table declaration, you can use variable length
cobol table. During program execution based on number of
employees you can set the length of table

Is This Answer Correct ?    14 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give some examples of command terminators?

1237


What is length is cobol?

1083


Which Search verb is equivalent to PERFORM…VARYING?

1023


Which is not true about evaluate statement

2432


) how do u code after getting data?

2130


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

3211


What is static and dynamic call in cobol?

1047


HOw can I get the negative sign while deduct high value from low value

2242


Which mode is used to operate the sequential file?

1180


What is inspect in cobol ?

1281


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

1130


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

1220


How do you get the data to code the BMS macro?

1950


What do you understand by psb and acb?

1094


Explain about different table spaces.

1079