|
I could be wrong but didn't IBM start including the SQL development stuff in one of the V5 releases (maybe V5R2 or V5R3)? You may be entitled to it already.
Matt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of johnking@xxxxxxx
Sent: Wednesday, October 01, 2008 6:04 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Creating SQL result set in RPG without 5722ST1
Scott,
Thanks for the reply. I was hoping to experiment with stored procedures by
following the ORDERR4 example before getting into web services, but oh well.
Anyone remember Bill Murray's "baby steps" in the movie "What about Bob?"
Or perhaps someone would be kind enough to send me a SAVF of the compiled
ORDERR4 to johnking at pdq dot net?
Many thanks, JK
On Wed 08/10/ 1 14:49 , Scott Klement sent:
Hi John,--
Presumably there are one or more API calls thatsimulate "SET RESULT> SETS" but my inexperience is showing as I cannot put
all the pieces > together.
Unfortunately, I don't know of any way to use 'SET RESULT SETS' unless
you use the embedded SQL compiler. The CLI reference explicitly states
that CLI can't be used to return a result set, and the SQL Reference
manual states that the 'SET RESULT SETS' statement can only be embedded
into an application program.
Your alternatives:
a) Use parameters instead of result sets to return information.
b) Scrap the SQL idea and use web services, instead.
I wish I had better news for you...
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.
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 copyright@midrange.com.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.