Hi,
If you want to fetch the 5th row within the result, you may try the
following:
Exec SQL Fetch Before From YourCursor ; //positions before the first row
Exec SQL Fetch Relative 5 from YourCursor ; //reads the 5th row after the
current position
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
?Train people well enough so they can leave, treat them well enough so they
don't want to.? (Richard Branson)
-----Ursprüngliche Nachricht-----
Von: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im Auftrag von Booth
Martin
Gesendet: Monday, 12.9 2016 00:28
An: RPG programming on the IBM i / System i
Betreff: SQLRPGLE - Positioning dynamic scroll cursor
This is eluding me. I suspect that is because I can not ask the question
clearly.
The dynamic scroll cursor works for me for first, next, and prior. Very
handy. The problem is when I want to start with the cursor positioned at
some value greater than first. Lets say, for instance, I want to start the
scroll with row number 5, and be able to next/prior to row 6 or row 4.
I can't find an explanation or an example.
--
This is the RPG programming on the IBM i (AS/400 and 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.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.