× 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 11:00:11
PM:
----- Message from Charles Wilt <charles.wilt@xxxxxxxxx> on Wed, 14
Dec 2016 12:39:26 -0700 -----

To:

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

Subject:

Re: Embedded SQL For Screen Load

My advice...

Don't do it. SQL doesn't really support "Position To", instead it's
more
"Search/Subset By"


Really? What about the following?

where db_column >= :search

Lot's of posts over the years detailing the hoops needed in SQL to do a
position to (and provide the exact functionality you have now). Not
really
worth the effort IMO.


I don't see any hoops in doing the example above. The only challenge is if
there's nothing that matches and you want to display the previous record
as well as those that are greater than the search criteria. But I don't
see it much more difficult than trying to do the same after a SETLL.

Michael Quigley
Computer Services
The Way International
www.TheWay.org
419 753-1222

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.