Thanks Joe
20 dope slaps to me
must remember KISS
(Keep It Simple Stupid - me being the Stupid)
Alan Shore
NBTY, Inc
(631) 244-2000 ext. 5019
AShore@xxxxxxxx
"If you're going through Hell, keep going" - Winston Churchill
"Joe D"
<nike@dslextreme.
com> To
Sent by: "RPG programming on the AS400 /
rpg400-l-bounces@ iSeries" <rpg400-l@xxxxxxxxxxxx>
midrange.com cc
Subject
12/05/2007 11:48 Re: Update the first 1500 records
AM that need updating
Please respond to
RPG programming
on the AS400 /
iSeries
<rpg400-l@midrang
e.com>
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.