Nope - the ABL is not designed to use 2-dimensional arrays like in Java. Have a look at Temp-Tables - most likely you will be able to solve your requirement with them.
define i as integer.
define i2 as integer.
define variable arr as character extent 15. /*3 x 5*/
&scoped-define arrIndex ((i - 1) * 5 + i2)
do i = 1 to 3:
do i2 = 1 to 5:
display arr[arrIndex].
end.
end.
&undefine arrIndex
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.