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



declare sqlplandate inSENSITIVE scroll cursor for
SELECT momast.ordno,
momast.fitem,
momast.odudt,
momast.orqty,
momast.ostat,
momast.fdesc,
momast.opcur,
momast.qtyrc,
momast.latdt,
momast.plann,
momast.qtdev,
momast.sstdt,
morout.awrkc,
morout.opseq,
morout.opstc,
morout.ltrdt,
morout.tqctd
FROM amfliba.momast
JOIN amfliba.morout ON momast.ordno = morout.ordno
WHERE momast.plann = :svplann AND
momast.ostat < '55' and
momast.odudt >= :rsvdate
order by momast.odudt,
momast.ordno,
morout.opseq;

Svplann is a numeric value (as is plann) that comes from the screen.
Rsvdate is a date in cymmdd format that is a manipulation of an 8 digit
field entered on the screen in yyyymmdd format and verified.

It appears to scroll forward works fine when the new date is entered, the
scroll backward seems to be the issue. If it I reach a date prior to
rsvdate, it appears to position to anywhere and the dates are not in
sequence even when scrolling forward.

exec sql
fetch relative :rrns1 from sqlplandate
into :(List of program field names)

rrns1 = 1 - (rr1 + sflsiz + 1)
rr1 is the current number of records on the subfile page
sflsiz = maximum record in the subfile
so rrns becomes a negative value


Regards,

Jim Hawkins
Programmer Analyst
Interkal LLC
Kalamazoo, MI



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.