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



Just to save anyone else wasting time ...

Kelly has indeed provided a very useful example ... but I should point out that it appears to require the V5R4 and later OLAP additions to DB2 for i. I cannot access my V5R4 system today and so was testing on a V5R3 box. Doesn't work! Trolling the archives revealed that the problem is that ROWNUMBER() OVER() apparently wasn't part of the base product until V5R4.


Jon Paris

www.Partner400.com
www.SystemiDeveloper.com



On 4-Dec-09, at 4:44 AM, web400-request@xxxxxxxxxxxx wrote:

This is certainly not the only way to paginate with DB2. I just thought
it might be useful to have a working example in the WEB400 archive.


The script assumes a DB2 file called MYLIB/MYEOP. The MYEOP file
contains four fields: EOPYEAR, EOPPRD, EOPBEGDT, EOPCLSDT.


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.