× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: READE is confusing to me
  • From: "M. Lazarus" <mlazarus@xxxxxxxx>
  • Date: Fri, 15 Sep 2000 12:02:54 -0400

Doug,

At 9/14/00 12:50 PM -0400, you wrote:
>And I'd much rather to:
>
>       C     Key           Setll     File
>       C                   DoW        %reade( File )
>
>          *  stuff
>
>       C                   EndDo
>
>And, since I *think* we'll be able to do this someday, it makes me
>care less about the other debate over the BIFs.  FWIW, the BIFs make
>sense to me in terms of being consistent with the indicator usage, but
>I do agree it is error-prone if you don't understand that different
>opcodes set different BIFs.  We've all seen plenty of posts here where
>people fell into that trap and didn't understand why.

  The "nice" part about it is that Toronto can still step up to the plate 
and "fix" this.


>I *never* saw a program which intentionally relied on this quirk of
>demand READs.  It was always my opinion that if IBM changed how it
>worked, that if programs behaved differently after being recompiled,
>they would more likely be working correctly for the first time...

  I've seen it!  It was used where the 2nd READ should only be done if the 
first READ was successful.  In that case, no additional test was needed to 
condition the 2nd READ.  I didn't like it at all, but at least I knew how 
it worked.  I was really glad when full-procedural files corrected 
it.  Also, to get rid of the "R"andom in the "F" spec.  I wondered why the 
"L" was still needed...

  -mark

+---
| 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 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.