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



The slick thing too is that you can map the array to a user space so you can
return up to 16mb of data with your array without taking a bunch of storage
in your program and worrying about making the array big enough. Have tested
it and it does work. Oh when, oh when is IBM going to give use terabyte User
Spaces and eliminate the 16mb limit?

On Tue, Mar 17, 2009 at 3:32 PM, Charles Wilt <charles.wilt@xxxxxxxxx>wrote:

I second Alan's response....your other programmer is completely incorrect.

You can return a set of records, aka a "result set" using embedded SQL
or an SQL defined procedure.

When using embedded SQL, you can even build the result set from an
array instead of an SQL select. The only downside, at least with RPG,
is you need to know the number of records that will be returned.

So to summarize,
- An SQL defined stored procedure can return a result set
- An external program, identified as an external stored procedure,
that uses an SQL select can return a result set.
- An external program, identified as an external stored procedure,
that uses native i/o or no i/o can use the SET RESULTS statement to
return a result set from an array.



HTH,
Charles



On Tue, Mar 17, 2009 at 3:42 PM, <DLee@xxxxxxxx> wrote:
Hello

In talking to one of my fellow programmers, he tells me stored procedures
can't be used to retreive data file data from th iSeries to a network
server. He says they can only be used to pass parameter type data back a
forth.

To me the term SQL means I can select and pull data files back a forth.
In
different examples I see on the web, it looks like data can be moved back
and forth.
Since I don't work with the pc world much, only iSeries, I'm not real
expert in that area.

I have an application coming up where I where I was planning to use
stored
procedures to allow a C# programmer to retreive database data from the
iSeries, so I'm kind of interested in wanting this to work.
What's the real scoop?

Appreciate any help.

Darrell Lee
Information Technology
Extension 17127




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.