At 12:53 01/24/1999 -0600, Julie wrote:
>Hi everyone....
>I was working on an RPG/400 interactive program that uses two keyed
>logicals, one update,  from the same PF,  all update(*immed), RISC
>system, no EOFDLY (if it makes a difference?) .  I was told by another
>programmer that because the RISC system is so fast that the program
>could write to the file and not get a read within the same pgm because
>the buffer has not been cleared and that a FEOD will prevent this.  Does
>this make sense to anyone???  P.S.  I did RTFM.      Thanks....   Julie

It's happened to me, and it had nothing to do with the system being fast,
because it wasn't. Particularly if you open the file for output only, this
can happen, because the system will automatically buffer the output, but
even if you open the file for update, it can still be a problem, because
physical disk writes can occur asynchronously. You can get around this by
using FEOD in the program, or issuing an override to force a physical write
each time a record is written (FRCRATIO I think).
Pete Hall
peteh@inwave.com
http://www.inwave.com/~peteh
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-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 thread ...

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.