|
>> RPG doesn't directly support multidimensional arrays but you can easily .... As of V5R2 it sorta kinda does since you can have an array at the DS level and the DS in turn can contain an array. Like so: D ArrayDim1 DS Dim(99) Qualified D ArrayDim2 20a Dim(99) Elements are referenced as ArrayDim1(x).ArrayDim2(y) Since you can also nest one DS inside another (via the LIKEDS keyword) you can have as many dimensions as you want. We wrote a piece on this for Midrange Server you can find it here www.midrangeserver.com/tfh/tfh082202-story03.html or via the Articles page on our site www.Partner400.com Jon Paris Partner400
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.