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



If you are on V5R1, you can use fetch-first clause.
See this link for syntax:
http://publib.boulder.ibm.com/pubs/html/as400/v5r1/ic2924/info/db2/rbafzmstintsel.htm


    Alexei Pytel

"No one can beat unbeatable"





                    Finucci Domenico
                    <Domenico.Finucci@Fid       To:     
"'midrange-l@midrange.com'"
                    italia.it>                   <midrange-l@midrange.com>
                    Sent by:                    cc:
                    midrange-l-admin@midr       Subject:     R: SQL Question
                    ange.com


                    09/27/2001 09:13 AM
                    Please respond to
                    midrange-l





Good morning. As far as i know the only way to simulate a partial retrieval
(first nn rows) is (at least up to V4R5) to write a UFD function that
simply
adds 1 to a counter.
Your SQL will look like "Select  counter, YrField from YrTable Where
Counter
< 10" Counter is an UserDefinedFunction.  You may take a look at
www.as400network.com, there sould be an article by P.Conte or M.Kravitz.
Sincerely

Domenico Finucci
Fiditalia , Milano, 02- 4301-2494
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.







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.