×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Well you didn't have the FOR RETURN TO CLIENT (I believe there is another option besides CLIENT, and I don't know what the default is).

Have you tried using an Occurs (move the array into the occurs ds for the purpose of creating a result set) to see if that works (so you know the issue is in fact the DS and not the return in general).

Some links from my favorites from when I was working with Result Sets:
DB2 for i SQL Reference (7.1): http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/db2/rbafz.pdf
Stored Procedures (etc): http://www.redbooks.ibm.com/redbooks/pdfs/sg246503.pdf
Stored Procedure Example (v5r3): http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=%2Fsqlp%2Frbafyresultsete2.htm

And why not, one on SQLRPGLE in 7.1 reading Stored Procedure Result set (helpful for unit testing):
http://www.iprodeveloper.com/content1?topic=71-sqlrpgle-read-stored-procedure-result-sets-698483&catpath=sql


-Kurt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Wills
Sent: Wednesday, February 06, 2013 4:27 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Trying to make a RPG Stored Procedure that returns a resultset

So I should be doing it right based on that.

--
Mike Wills
http://mikewills.me



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2026 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.