|
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:
HelloIn
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.
different examples I see on the web, it looks like data can be moved backstored
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
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 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.