O.k., that would explain it.  Normally, this is how it should work.
However, this is not a "normal" program, and the update routine I posted in
my last post needs to run before the next EXFMT.  I would have expected the
RPG Reference to explain that an I/O on the subfile control record was
required before a READC would pick something up.

- Dan

On Wed, May 13, 2015 at 12:44 PM, John R. Smith, Jr. <
smith5646midrange@xxxxxxxxx> wrote:

> This is correct.  You must do some type of I/O on the control record for
> the
> SFLNSTCHG to trigger.  It has been a long time but doing just a write
> instead of an EXFMT of the control record might work.
>
> -----Original Message-----
> From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Roche,
> Bob
> Sent: Wednesday, May 13, 2015 12:40 PM
> To: RPG programming on the IBM i (AS/400 and iSeries)
> Subject: RE: SFLNXTCHG head-scratcher
>
> But the READC is already past that record so it won't read it again until
> you EXFMT(write/read) the subfile. At least I never got it to work without
> doing that.
>

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.