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



----- Original Message ----- From: "Gene Ewell" <gene.ewell@xxxxxxxxxxxxx>
To: <RPG400-L@xxxxxxxxxxxx>
Sent: Thursday, February 01, 2007 8:12 AM
Subject: SQL and Data Selection/Filtering


Hi,

I have an inquiry/maintenance program with a 'position to' field for
data selection/filtering.


If you are trying to set a 'Position To', that is different than a Filter. If the user positions to 'B' they will expect to be able to page down into the 'C's as well. Based on your sample, a position to is a lot easier to do:

Select recust#, reparent, cmcust, cmname From datalib.refile inner join
datalib.cmfile on recust# = cmcust Where cmname >= :PositionTo Order by
cmname

The only down side to this would be that you would need to requery the database for page up handling.

Someone else answered the Filter problem (when the host variable is blank)....

hth,
JD

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.