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



"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 12/14/2016 12:43:12
PM:
----- Message from Bill Howie <blhowie66@xxxxxxxxx> on Wed, 14 Dec
2016 12:42:57 -0500 -----

To:

"RPG programming on the IBM i (AS/400 and iSeries)"
<rpg400-l@xxxxxxxxxxxx>

Subject:

Re: Subfile question - Position To functionality

Jon,

Here's my definition of my array:

loc s 8 dim(1600) ascend

Here's my lookup:

eval n = %lookupgt(scpos:loc)

The "SCPOS" field, in the scenario I'm looking at, would have be like
this:
"OVbbbbbb" where the b's are blanks. I would want to position my
subfile
to records which could have just "OV" in them, or "OVERFLOW", or
"OVER-1AB", etc. So I'm basically entering a partial value in my search
field and I want to be able to find the array elements from there on. If
LOOKUPGT won't work I'll just go to creating a temporary file to hold my
locations. If I do that, SETLL would work in this scenario, right? We
are
at V5R4 FYI.

Bill

This may be irrelevant, but does the case srcpos and the data in the array
match? I've seen code where the search criteria never worked because it
was upper case and the data was mixed case or lower case or vice versa.

Michael Quigley
Computer Services
The Way International
www.TheWay.org

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.