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

can u plz expain me how to declare dynamic array? what is
the meaning of depending on clause in dynamic array?

Answer Posted / amarnadh reddy

When a table of variable size is required, the occurs
depending clause may be used.

01 A1 PIC 99.
01 REC-1.
05 P1 PIC XX.
05 P2 PIC 99 OCCURS 1 TO 90 TIMES DEPENDING ON A1.

Here depending on the value of the data name A1 the size of
P2 Will be decided. It can be anything between 1 and 90.

Is This Answer Correct ?    31 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1528


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

2376


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1160


what is the use of outrecord?

2203


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

2990


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

1112


What do you understand by psb and acb?

1111


What is the local-storage section?

1140


A table has two indexes defined. Which one will be used by the SEARCH?

1281


What is the compute verb? How is it used?

1131


What is the difference between goback, stop run and exit program in cobol?

1578


Which division and paragraphs are mandatory for a COBOL program?

1263


What is the difference between Call and a Link?

1188


Write down the divisions of cobol program?

1238


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

2004