×
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.
Hi Vern,
For a keyed file, I would expect that it's just getting a pointer from
the index to the record to be read. And along those lines, if I use
*START, I'd think it would use the pointer from the first index entry.
In either case, if the index either does not have an entry for the
search argument, or the index is empty, then %equal is *OFF. But if
there is an entry for the search argument, then it would be *ON. And if
the index is not empty, then there is an entry for *START.
Same thing with %found. I'm coming to the conclusion that if *START or
*END is used, then %EQUAL and %FOUND are set to *OFF, period.
At this point, it's apparent what the actual behavior is, so I've
programmed accordingly. But it would be nice to see some documentation
thereof :)
On 3/16/2023 3:53 PM, VERNON HAMBERG Owner via RPG400-L wrote:
Hi Peter
SETLL does not position on a record - with *START it positions before the first record. I think %found doesn't have a way to know about what in the file in this case. Someone can help out here.
Vern
As an Amazon Associate we earn from qualifying purchases.
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.