SQL Gblobal Variables can be embedded in SQL views.
Those variables can be set immediately before processing those views
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 [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im Auftrag von Booth
Martin
Gesendet: Friday, 05.2 2016 07:01
An: RPG programming on the IBM i / System i
Betreff: Embedded SQL: 6 views of data, 6 identical cursors, excepting the
Where clause
A large file, with 6 views over the file. The requirement is to use SQL to
get the same data, grouped and ordered in the same way, from the file
excepting with a different Where clause. Moving the Where clause from the
Declare Cursor to the Fetch Cursor would reduce a lot of redundant code. Is
there a way to do that or similar?
--
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.