Dynamically increasing Array size?
Page 1 of 1
Dynamically increasing Array size?
Hi,
I am changing a cobol program to PL/1 program and I came across this problem.
01 A.
05 B
OCCURS 1 TO 20000
DEPENDING ON X INDEXED BY Y.
The Cobol program has an array where the length of the array is increased as per the need during the run time . i.e when an input message is read the value of X is incremented by 1 and the input msg copied on to the array(which essentially means that we are not preallocating fixed amount of memory to the array ).
Please can you let me know if we have a corresponding PL/1 implementation.
Tried googling but didnt find any thing.
Any help much appreciated.
I am changing a cobol program to PL/1 program and I came across this problem.
01 A.
05 B
OCCURS 1 TO 20000
DEPENDING ON X INDEXED BY Y.
The Cobol program has an array where the length of the array is increased as per the need during the run time . i.e when an input message is read the value of X is incremented by 1 and the input msg copied on to the array(which essentially means that we are not preallocating fixed amount of memory to the array ).
Please can you let me know if we have a corresponding PL/1 implementation.
Tried googling but didnt find any thing.
Any help much appreciated.
kasthuri- Posts : 212
Join date : 2013-01-27
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|