|
Vern said:This is because the file was positioned to the end of the file
So it may be - but this has been a digression - I was not checking other than the error indicator when using *START, while I DO use the %found() indicator when using 0 as the search-arg.
I wonder if someone else will be able to verify the behavior.
It does still seem odd that SETLL 0 file; for an arrival-sequence file sets %found() to *off - there ARE records whose RRN > 0 (18 of them in the file I'm reading), and this satisfies the definition of SETLL, unless there is some unspoken special processing here.
--------------------------
FWIW, (just tested to double check):
SETLL 0 - %FOUND is *OFF
Subsequent READ will not retrieve a row
I hadn't thought of that - it is curious - but maybe it assumes there is always something to expect to be there - same with OPEN, kind of.
SETLL *START - %FOUND is *OFF
Subsequent READ _will_ retrieve the first row
SETLL 1 - %FOUND is *ON
Subsequent READ _will_ retrieve the first row
Curious that the use of *START does _not_ affect %FOUND.
Brian.
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.