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



Two ways to create a results set...

- via a cursor
exec SQL
declare C1 scroll cursor for
select <...>
with return to client;
exec sql
open C1;


- via an array
exec SQL
set result sets array :product for :i rows;

The REDBOOK Stored Procedures, Triggers, and User-Defined Functions on DB2
Universal Database for iSeries
https://www.redbooks.ibm.com/abstracts/sg246503.html?Open

Covers both methods.

Charles

On Thu, Mar 17, 2016 at 5:04 AM, gio.cot <gio.cot@xxxxxxxxxxx> wrote:

Hi all



I would need to call from a windows program (from .net or VB) an IBM I
stored procedure, that should call and RPG program (that fille a work
file)
and the return a work file to the windows program as result set or other ..
how can I solve this problem with V6R1 ?



Thanks in advance



--
This is the RPG programming on the IBM i (AS/400 and iSeries) (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.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.


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.