|
When I have done this in the past, even with the sflnxtchg on, the second
time through I have to reposition the pointer or whatever it's called at
the beginning of the subfile. Since setll is illegal for subfiles, I chain
with relative record one. From then on readc works. It's just like
reading a disk file. Once you have read it, you have to reposition at the
beginning to read it again.
Is there a better way to do this? I'd be interested to know.
Valene M. Williamson
IBM Certified Specialist
vwilliamson@glazers.com
972-448-8018
"Jim Franz"
<jfranz@triad.rr. To: <RPG400-L@midrange.com>
com> cc:
Sent by: Subject: Re: reading a sfl
twice
owner-rpg400-l@mi
drange.com
04/19/01 12:00 PM
Please respond to
RPG400-L
set ind on for sflnxtchg & update sfl (not control). Then next readc of
same
sfl records will read all of them as changed
records. Good for read for errors & then read for update.
jim
----- Original Message -----
From: <saustad@deltadentalwi.com>
To: <rpg400-l@midrange.com>
Sent: Thursday, April 19, 2001 2:00 PM
Subject: reading a sfl twice
> Is there a method for reading thru a sfl twice using READC? We have a
> situation where after we EXFMT, we need to "READC" thru the sfl twice.
> I was thinking of using the SFLNXTCHG without an indicator. We checked
the
> midrange archives, and there was something about doing a WRITE to the
> sfl control rcd fmt between the two READC loops to reposition the sfl to
> the beginning. I'm having difficulty getting this to work.
> Thanks for any help.
>
> +---
> | 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
> +---
+---
| 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
+---
+---
| 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
+---
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.