|
May I ask why you created a cursor? That alone takes quite a bit of time. If you just did: > c/END-EXEC > c/EXEC SQL select * from j4pp1 where key1 = :mykey into :j4pp1 > c/END-EXEC I believe you might get better performance. On Thu, 22 Jul 2004 20:10:06 -0500, Joe Pluta <joepluta@xxxxxxxxxxxxxxxxx> wrote: > I then took the following code: > > c for x = 1 to count > c eval mykey = %char(x) > c mykey chain j4pp1r > c endfor > > - and - > > c for x = 1 to count > c eval mykey = %char(count) > c/EXEC SQL declare c cursor for select * from j4pp1 where key1 = :mykey > c/END-EXEC > c/EXEC SQL open c > c/END-EXEC > c/EXEC SQL fetch from c into :j4pp1 > c/END-EXEC > c/EXEC SQL close c > c/END-EXEC > c enddo -- Mike Wills iSeries Programmer/Lawson Administrator koldark@xxxxxxxxx http://www.koldark.net Want Gmail? Email koldark+gmail@xxxxxxxxx to get on my waiting list.
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 [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.