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



On 11/30/2010 8:52 AM, Michael Ryan wrote:
When I look at a stored procedure, I see that I can return a result set.
However, I think I need to have an array or a multiple occurrence DS, which
makes me think I would need to know how many rows I would return.

You can return an array or MODS if you want to. If you do, you can specify (with a variable) how many rows to return.

But you don't have to, you can also return an SQL cursor.


I was thinking about a UDTF. Would that mean my RPG program would
write (INSERT) records to the UDTF and then my PHP script would just
do a simple SELECT? Does a global temporary table play in this?

You can't INSERT into a UDTF. A UDTF outputs a virtual table that's calculated by your RPG program. It's not a real table, and you can't insert, update or delete from it (and frankly, I don't see why you'd want to?!)

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.