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



Il 02/03/2020 19:58, Patrik Schindler ha scritto:
Hello Nick,
Am I that blind? :-) I was always looking out for some "second key" set to *HIVAL to tell SETGT what to do.
Wait. If you need to read from a *Specific* point inside the key, you have to use 2 keys, one for setgt and one for the readp (or a single key specifiying number of filed to use). If you just need to read all record that have that key, just use a single one.

A 'classic' example with orders row:

Setgt (OrdNum) OrdRow
Readpe (OrdNum) OrdRow

will read all order's row for the given order, while:

Setgt (OrdNum:100) OrdRow
Readpe (OrdNum) OrdRow

will read from highest row less or equal 100, and then down to lower one.

So, you don't need *Hival/*Last if all you want is to read the whole 'keyaed' row.


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.