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



Jeff Day wrote:

I am using SQL 'connect to' to connect to other System i's, and I need
to call an RPGLE program on the remote boxes, before I issue queries. I
am looking for a method I can use between /Exec SQL - /End-Exec.
Distributed SQL docs say "CALL" should work, and I found an archive
email from Charles Wilt that said you don't need a stored procedure to
do it either... but I can't seem to get it to work yet.
If anyone could share a code example, I'd greatly appreciate it.

Jeff:

A likely problem would be matching data types of any prams that need to be passed. If there are none, then that's not a problem. Post the SQL CALL statement and it should be easy to spot what needs changing.

If there is no need to retrieve returned values from prams, it generally isn't required to register a program as a stored procedure; you can simply CALL it.


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