Hello all. I've run into a problem while trying to create a multi-dimensional array to hold records. I have to use an array because I want to use the SortA opcode to sort the results. From what I understand, RPG does not support actual multi-dimensional arrays. Here is the data structure I set up to hold my data:
I max out at around 1100 elements because I get the error saying that the data structure is longer than ~65500 characters. Is there another way to create this array, or am I limited to that size? An alternative would be to use a work file...
Code:
D SflDS DS
D A@SflFull Dim(1100) Ascend Inz(*Hival)
D A@Date 6S 0 Overlay(A@SflFull:*Next)
D A@PickPlan 8S 0 Overlay(A@SflFull:*Next)
D A@Rule 10A Overlay(A@SflFull:*Next)
D A@Orders 6S 0 Overlay(A@SflFull:*Next)
D A@Lines 6S 0 Overlay(A@SflFull:*Next)
D A@Cases 6S 0 Overlay(A@SflFull:*Next)
D A@CuFt 8S 0 Overlay(A@SflFull:*Next)
D A@Weight 8S 0 Overlay(A@SflFull:*Next)
I max out at around 1100 elements because I get the error saying that the data structure is longer than ~65500 characters. Is there another way to create this array, or am I limited to that size? An alternative would be to use a work file...