|
Hi Alan,but
<snip>
C eval Dr# = 0
C dou not %found(Ord122)
C eval Dr# += 1
C Dr# chain Ord122d
C if %found(Ord122)
C exsr Isitemtaxed
C endif
</snip>
One solution is to put the SFLNXTCHG keyword in the DDS for the
subfile
DO NOT condition it on an indicator. This will ALWAYS mark ALL subfile
records as changed.written
Then replace your loop with a readc loop. You will read all records
because they have all "changed". This prevents you having to worrylist
about whether a particular record was written with a particular RRN.
you can simply readc until eof.
HTH
Cheers
Larry Ducie
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,--
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.