× 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: RPG READE - FACTOR 1
  • From: "Hans Boldt" <hboldt@xxxxxxxxxxxx>
  • Date: Wed, 30 Jul 97 08:28:56 EDT

Wayne Achenbaum
> Does anyone know when RPG stopped requiring Factor 1 on the READE opcode
> or if was ever required. I was pretty sure that it was required at some
> Release. It seems by not requiring factor 1 a door is wide open for
> logic errors. For example the typical filekey setll filename followed by
> a filekey reade filename. If the reade is missing the filekey in factor
> 1. the reade is matched against the full key of the current record (I
> guess the record that the file cursor is sitting under) based on the
> record format used which may or may no be the same as the key specified
> on the setll. TIA

Hi Wayne!  I believe it's been like that since V1R3.  I suppose any
feature of the language could be a source of logic errors if not used
properly.  READE was "enhanced" to improve performance in certain cases.

BTW, in the next release of RPG, all indicators on I/O operations will
now be optional!  You'll be able to use built-in functions to test end of
file, record not found, etc.

Cheers!  Hans

Hans Boldt, ILE RPG Development, IBM Toronto Lab, hboldt@vnet.ibm.com
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the Midrange System Mailing List!  To submit a new message,   *
* send your mail to "MIDRANGE-L@midrange.com".  To unsubscribe from     *
* this list send email to MAJORDOMO@midrange.com and specify            *
* 'unsubscribe MIDRANGE-L' in the body of your message.  Questions      *
* should be directed to the list owner / operator: david@midrange.com   *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.