× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



You're kinda right...

IBM included a behind the scenes C compiler so you could create, from
iNav's Run SQL scripts for example, SQL stored procedures and
functions without having the license program for the C compiler
installed

However, 5722-ST1 is still an optional for purchase piece required to
embedded SQL into a host language like RPG.

HTH,
Charles

On Thu, Oct 2, 2008 at 8:33 AM, Haas, Matt (CL Tech Sv)
<matt.haas@xxxxxxxxxxx> wrote:
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 that
simulate "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 thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.