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



I am in the same exact situation as you. I ended up using a UDTF.

I created a separate subprocedure and service program that accesses my
original service program where the data extraction takes place. The new
service program is called from an external SQL function that returns a
table.

You could also use a SQL stored procedure that executes a SQL statement,
and opens and sets a cursor.

I can provide examples off list if you would like.


From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of johnking@xxxxxxx
Sent: Thursday, 2 October 2008 9:29 a.m.
To: rpg400-l@xxxxxxxxxxxx
Subject: Creating SQL result set in RPG without 5722ST1

All,

Am experimenting with the excellent "RPG to the Web" articles
published
earlier this year by SK and have run into a slight problem in that our
shop does not have
5722ST1 SQL Developer Kit so it isn't possible for me to compile
SQLRPG.

I've had success in the past using QSQPRCED and SQL CLI to prepare
and
execute SQL statements from RPG, but this is the first time I've
needed
to create and return a result set. 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.

Can anyone point me in the right direction? Unfortunately, purchasing
5722ST1 isn't an option here - our iSeries shop is in the process of
being replaced by a 'nix system and I am specifically disallowed from
purchasing or installing any additional software during the process.
All
education is on my dime and spare time...

Many thanks, JK

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.