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



Mike,

From the manual:

The SETLL operation positions a file at the next record that has a key or relative record number that is greater than or equal to the search argument (key or relative record number) operand specified (search-arg).

The SETGT operation positions a file at the next record with a key or relative record number that is greater than the key or relative record number specified in factor 1.

So, if the search argument does not exist in the file, there is no difference between SETLL and SETGT. If it does exist SETLL positions just before that record, so you'll get it with the next read. SETGT positions after the record, so you'll get the next one.

Joep Beckeringh


Mike schreef:
I am working on setting up an approval work flow and am confusing myself on
SETLL vs. SETGT.

I have the sample data of:

user - approval amnt
mwills - 0.00
mwills - 100.00
mwills - 10000.00

If the total amount is 50, it should use the 0.00 approval work flow. Would
I have to "SETGT ('mwills', 50) myfile" then do a READP to get the record I
want?

Does SETLL set the file pointer just before the record and SETGT set the
file pointer just after? Would it work in my example?



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.