|
Rajeev,
Basically you have to move your 10th element into a 60 element array, make your
change, then move it back again.
BTW, redefine your array into a variable and forget using the MOVEA command. I
hear it has too much overhead.
So your code would look something like this: (spacing is not correct)
E A 100 60
E B 60 1
I DS
I 1 60 BFIELD
I 1 60 B
C MOVE A,X BFIELD
C (MAKE CHANGES TO "B")
C MOVE BFIELD A,X
Rajeev Asthana wrote:
> Hi All,
>
> Is there any way to process multi-dimensional array in RPG?
> For example, there is a complile time array with 100 records and each record
> with 60 chars.
> If I want to change 35th- 50th positions of the 10th records, how can I do it?
>
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---END
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.