Alan Shore wrote:

Actually my theory is still correct.
As Charles previously mentioned
"Setll w/rrn = 0 means, position the file one record before the 1st
record, ie. before the beginning of the file."

I don't think that's the right interpretation of the RRN for SETLL;
SETLL doesn't say anything about "one record before".  SETLL positions
the file at the first record whose RRN is greater than or equal to the
specified RRN; if you have a file with three records whose RRNs are 14
200 431, and you specify SETLL RRN=2, it would position at record 14.

But if there _is_ a bug here with RRN=0, it's a bug in the RPG
documentation.  I think it would be too much of a compatibility issue if
SETLL were to change to be successful with RRN=0, or to issue an
exception.


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.