In the following example, the size of one-dimensional array A is changed to NEWSZ, and the previous contents of A are discarded.
RESIZE(A,NEWSZ,DISCARD)
In the following example, the size of one-dimensional array ARAY is changed to NEWSZ, and ARAY is changed to a paged array. The contents of ARAY are retained.
RESIZE(ARAY,NEWSZ,PAGED)
In the following example, the size of one-dimensional array INPUTDATA is changed to equal the value of the MAXRECSIZE attribute of file F. The previous contents of INPUTDATA are discarded.
RESIZE(INPUTDATA,F.MAXRECSIZE,DISCARD)
In the following example, the size of the specified row of array A is changed to 5, and the previous contents of that row are discarded. The other rows of A are not affected.
RESIZE(A[2,*],5,DISCARD)
In the following example, the size of one-dimensional array A is increased by 100 elements, and the previous contents of A are retained:
RESIZE(A,SIZE(A)+100,RETAIN)
In the following example, the size of the one-dimensional event array EVENTARRAY is changed to 20, and the previous contents of the array are retained. Note that RETAIN must be specified for event and interlock arrays.
RESIZE(EVENTARRAY,20,RETAIN)
In the following example, the size of the second dimension of array STUFF is changed to M. New array rows are created for the new size of the second dimension. The previous contents of the array are retained.
RESIZE(STUFF[I,*,*],M,RETAIN)
In the following example, the size of the specified row of array STUFF is changed to N, and the previous contents of that row are retained:
RESIZE(STUFF[I,J,*],N,RETAIN) % RESIZE an array row

