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



Charles

What version does that come in? I don't remember it from long ago. Not sure what version Richard is going back to, but we go a ways, usually.

So this causes the result set to go all the way back through a front-end CL? Nice if it does.

Vern

Charles Wilt wrote:
Richard...

So you have an SQL stored procedure calling an external RPG stored
procedure? And the RPG procedure returns results?

SQL Proc
|_ RPG Proc (builds RS)

And you want
SQL Proc
|_CL proc
|_ RPG Proc (builds RS)

But you don't get the results back?

In your RPG, you've got a SET RESULT SETS statement?

try changing it to
SET RESULT SETS WITH RETURN TO CLIENT


HTH,
Charles

On Wed, Mar 31, 2010 at 10:55 AM, Richard Schoen
<richard@xxxxxxxxxxxxxxx> wrote:
Hello All,

I'm pretty sure this won't work, but I will ask.

I have created an RPG stored procedure program that when called directly
from the stored procedure returns recordsets just fine. Good !

Would like to perform some setup stuff such as OVRDBF, etc to make sure
lib list and other stuff is good to go.

Tried putting a CL in front of the RPG call to do the overrides, but NO
recordset gets returned. Most likely because of the CL call between the
SPROC and the RPG.

So the questions:

1.) Can a CL program be called from a stored procedure that calls an RPG
and ultimately returns a recordset ? (I'm guessing not.)

2.) Is using *INZSR a better alternative that will work so I can just
call the RPG and do all the setup stuff there. Some of the discussions
I've seen say that *INZSR happens before file opens, etc....

Thanks in advance for any insight.

Regards,
Richard Schoen
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business
Intelligence
Email: richard@xxxxxxxxxxxxxxx
Web Site: http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT


--
This is the RPG programming on the IBM i / System i (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.