The problem I believe it that you're asking the sp (RPG) to return a
result set each time a row is processed. I'm not sure this is possible.
I believe the result set may only be returned once per call of the sp.
Justin already responded with how to return a data structure for multiple
rows. In my case we updated a field in the file as each row was
processed.
But I'm starting to think what you're looking for is a data queue which
can be populated (by the RPG) as each row is processed. The PC app would
be monitoring the data queue and could process the returned data as it is
processed.
Rob
On 2013-08-22 12:09 PM, RPGLIST wrote:
You did not Steve,
the .net is sending the data, the iseries side is processing and sending
back a line by line response code.
This will send data...i thought he was talking of receiving it.
Because of the line:
" We have a windows app that would call a stored procedure and pass it
approximately 59 fields of data, but it can contain up to 99 rows of
data."
I thought the windows app was sending the data, not the other way round.
I apologize if I misunderstood the question.
Steve Needles
-----Original Message-----
From: [1]rpg400-l-bounces@xxxxxxxxxxxx [[2]mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Justin Taylor
Sent: Thursday, August 22, 2013 11:33 AM
To: [3]rpg400-l@xxxxxxxxxxxx
Subject: RE: using a DS with a stored procedure
Are you looking at returning the DS as the result set? If so, that's no
problem. Just load a DS array and return it. Here's the RDp snippet I
use for the return:
EXEC SQL SET RESULT SETS ARRAY :${Data Structure} FOR :${Rows}
ROWS;
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: [4]RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: [5]
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: [6]RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
[7]
http://archive.midrange.com/rpg400-l.
________________________________
This communication, including attachments, is confidential, may be subject
to legal privileges, and is intended for the sole use of the addressee.
Any use, duplication, disclosure or dissemination of this communication,
other than by the addressee, is prohibited. If you have received this
communication in error, please notify the sender immediately and delete or
destroy this communication and all copies.
TRVDiscDefault::1201
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: [8]RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: [9]
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: [10]RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at [11]
http://archive.midrange.com/rpg400-l.
References
Visible links
1. mailto:rpg400-l-bounces@xxxxxxxxxxxx
2. mailto:rpg400-l-bounces@xxxxxxxxxxxx
3. mailto:rpg400-l@xxxxxxxxxxxx
4. mailto:RPG400-L@xxxxxxxxxxxx
5.
http://lists.midrange.com/mailman/listinfo/rpg400-l
6. mailto:RPG400-L-request@xxxxxxxxxxxx
7.
http://archive.midrange.com/rpg400-l
8. mailto:RPG400-L@xxxxxxxxxxxx
9.
http://lists.midrange.com/mailman/listinfo/rpg400-l
10. mailto:RPG400-L-request@xxxxxxxxxxxx
11.
http://archive.midrange.com/rpg400-l
As an Amazon Associate we earn from qualifying purchases.