× 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.



Buck,

Thanks for your reply. Especially your understanding of "consuming" the results of stored procedures in RPG. It seems to validate my impression that stored procedures are more applicable to ODBC and JDBC clients.

Nathan.




----- Original Message ----
From: Buck <kc2hiz@xxxxxxxxx>
To: web400@xxxxxxxxxxxx
Sent: Thursday, July 3, 2008 10:11:32 AM
Subject: Re: [WEB400] Mapping SQL Result Sets to Browsers

Nathan Andelin wrote:

Let me admit that I've never written stored procedures or interfaced
with them from web applications, but my initial take is that they may be
more applicable to ODBC / JDBC environments; perhaps where the stored
procedure runs under a secure user profile. Do folks use them in RPG
programs?

Writing a stored procedure in RPG is very simple. iSeries DB2 support
lets one turn just about any program into a stored procedure with the
addition of 'set result sets' and a 'create procedure.' Very Cool.

Consuming a stored procedure in RPG is not nearly as nice. The only way
I know how to do it directly is via SQL CLI. There's an old project on
Sourceforge - iseriestoolkit - that was a great start to wrappering up
the CLI for RPG programmers.

An indirect way is to have your RPG code call some Java code. Java can
consume the stored procedure, convert the result set into an array and
pass the array back to RPG.

You can guess how much fun either of these are by the number of times
we've seen solutions like these posted.
--buck

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.