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

How do define Dymanic array in cobol how do u define single
demensional arry and multidymensional arry in ur cobol.

Answer Posted / billyboyo

In IBM Cobol

1) In IBM's Language Environment you can dynamically
acquire storage (look up HEAP in the manual). The storage
you acquire you can use as you like. Can be an array,
therefore a dynamic array. It is a "work-around" as dynamic
arrays are not directly supported.
2) 01 SINGLE-DIM-ARRAY
05 SDA-ITEM PIC X OCCURS 30.
A single-dimension array of thirty one-byte characters.
3) 01 MULTI-DIM-ARRAY.
05 MDA-FIRST-DIM OCCURS 20.
07 MDA-SECOND-DIM OCCURS 30 PIC X.
A multi-dimension array of 20 times 30 one-byte characters.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is not true about evaluate statement

2456


How many bytes S(8) comp field occupy and its maximum value?

2140


What is the use of intialize verb?

1254


What is a report item?

1139


What guidelines should be followed to write a structured cobol prgm?

1148


How arrays can be defined in COBOL?

1218


State the various causes of s0c1, s0c5 and s0c7.

1081


What is the difference between PIC 9.99 and PIC9v99?

1338


Difference between cobol and cobol-ii?

1277


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

1203


Define cobol?

1401


how do you reference the printer file formats from cobol programs

1219


In COBOL programming, what is PERFORM? What is VARYING?

1150


Why did you choose to work with ibm mainframe cobol programming?

1099


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

1205