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
Which is not true about evaluate statement
How many bytes S(8) comp field occupy and its maximum value?
What is the use of intialize verb?
What is a report item?
What guidelines should be followed to write a structured cobol prgm?
How arrays can be defined in COBOL?
State the various causes of s0c1, s0c5 and s0c7.
What is the difference between PIC 9.99 and PIC9v99?
Difference between cobol and cobol-ii?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Define cobol?
how do you reference the printer file formats from cobol programs
In COBOL programming, what is PERFORM? What is VARYING?
Why did you choose to work with ibm mainframe cobol programming?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?