|
FWIW - V5R4 here too, all latest PTFs, and the FETCH is not allowed in the
Subselect.
Although I do not see a way to do this in a single statement, you can
definitely do it in two. No need to write a program or even a function.
Step one, do a simple select for the RRNs of the first 1500 rows only - to
an outfile.
Step two, do your update with a simple subselect on the outfile from Step
One. No Fetch limit needed because the outfile only has 1500 records.
JD
----- Original Message ----- From: "Alan Shore" <AlanShore@xxxxxxxx>
To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
Sent: Wednesday, December 05, 2007 8:15 AM
Subject: Re: Update the first 1500 records that need updating
Interesting.
so are we.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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 copyright@midrange.com.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.