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

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

1129


What is the local-storage section?

1130


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3244


When is inspect verb is used in cobol?

1232


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

1381


What are the cobol coding sheets?

1241


Explain the configuration section of a cobol program with examples of syntax.

1165


how do you reference the rrds file formats from cobol programs

1549


What are the various section in data division and briefly explain them.

1146


Write some characteristics of cobol as means of business language.

1126


How you can characterize tables in cobol?

1175


how to refer the data field?

2249


how to access the file from prodution from changeman tool and to submit a file to production

7512


What is inspect in cobol ?

1280


What are the different rules of SORT operation?

1121