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



Vern said:
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

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

Follow-Ups:
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.