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?

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / roger riek

You can indeed create dynamic arrays in MVS Cobol. You need
to use the heap facility in the language environment.
There is a discussion about how to do this at
http://home.centurytel.net/rjriek/

Is This Answer Correct ?    0 Yes 1 No

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

Answer / kk

dynaic array is notink but a two dimension array.

01 studet.
02 stunam occurs 3 to 4 times depanding on n.
03 stuname pic x(15).
03 stumrk occurs 2 times.
04 stumark pic 9(3).
this is dynamic array.now runtime will pass the input.because
using depanding clause.

depanding clause pass the value runtime.

Is This Answer Correct ?    3 Yes 12 No

Post New Answer

More COBOL Interview Questions

what is the difference b/w level no.01 & level no.77?

3 Answers   HCL,


what is search and searchall?what is the diffrence between them?give an best example?

3 Answers   BirlaSoft,


How to retrive the 9th records out of ten records using the cobol program ?

3 Answers   UST,


How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?

1 Answers  


Explain call by context by comparing it to other calls.

1 Answers  


9(2).99 how many bytes take? Why . consider as a byte?

2 Answers  


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

0 Answers  


How will you find the currepted records in a file

2 Answers  


how can we code index in an array of cobol pgm?

1 Answers   Wipro,


what are the working storage fields in BMS macro?

2 Answers   IBM,


How can we pass data from cobol to JCl?

7 Answers   ADP, Amdocs, IBM,


how do you reference the fixed unblock file formats from cobol programs

0 Answers  


Categories