First, I would like to thank everybody who answered to me; every
response was carefully read, considered and appreciated, even if I
didn't answer to everyone.
The missing piece from the puzzle was the second "parameter" from the
WRITE op-code when I tried to repopulate the subfile. Even if this was
suggested before (by Stu), at that moment didn't work (the compiler
didn't like it) probably because I was using MODS, or for poorly used of
*input/*output parameters in DS definition.
I ended up switching from MODS to array DS (as Birgitta and Jon
suggested) and, using Jon articles, I created two arrays DS (one for
*input and one for *output); using EVAL-CORR I moved the data from
*input array to *output array and I used the last one (in WRITE op-code)
to re-populate the subfile.
At the end, warm thanks to David, who made this list possible and a very
valuable resource for a lot of us, where we can learn from the masters
and, also, from our colleagues...
Thank you
Florin Todor
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Tuesday, September 28, 2010 11:36 AM
To: RPG programming on the IBM i / System i
Subject: Re: MODS Likerec
Correct, EVAL-CORR was introduced in 5.4
On 9/28/2010 7:26 AM, Bryce Martin wrote:
eval-corr is available at 5.4 as well. I've used it already.
As an Amazon Associate we earn from qualifying purchases.