IMHO the easiest way is reading the subsequent rows by positioning and
reading with FETCH RELATIVE +x/-x where x is the number of rows you want to
move forward and backward.
I used the FETCH RELATIVE in composition with scrollable cursors and
multiple row fetches in single page subfiles, i.e. I always fetchted the
number of records of a subfile page into an array data structure and filled
the subfile after.
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!"
-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im
Auftrag von Nisha Ramesh
Gesendet: Friday, 03.1 2014 09:03
An: RPG programming on the IBM i / System, i
Betreff: Single page subfile
Hi
Could you pls let me know how to do rollup and down using scrollable cursor
in a single page subfile.?
--
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.
As an Amazon Associate we earn from qualifying purchases.