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
In COBOL programming, what is PERFORM? What is VARYING?
What is the local-storage section?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
When is inspect verb is used in cobol?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What are the cobol coding sheets?
Explain the configuration section of a cobol program with examples of syntax.
how do you reference the rrds file formats from cobol programs
What are the various section in data division and briefly explain them.
Write some characteristics of cobol as means of business language.
How you can characterize tables in cobol?
how to refer the data field?
how to access the file from prodution from changeman tool and to submit a file to production
What is inspect in cobol ?
What are the different rules of SORT operation?