I have a need to declare an array of 100, but in the furture there is a chance to increase that as per the need, how flexible I can declare the array in dynamically?
Is it possible to declare an array dynaically so that it can accomodate any number of data.
I am aware of below type of Dynamic array
02 PAYROLL-WEEK PIC 99.
02 PAYROLL-HOURS PIC 999 OCCURS 1 TO 52
DEPENDING ON PAYROLL-WEEK.
Where the maximum size of the array is 52 and the space allocated to this array depends on the PAYROLL-WEEK variable defined. Is the advatage of defining a dynamic array is only with Saving the space allocation or is there any other advantage over that?