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



That would appear to be the case; i.e. only one *array* can be returned. Albeit I would expect something other than a "syntax error"; i.e. other than -104. Anyhow... Further in the doc reference, specific to the "-ARRAY--host-structure-array--FOR--variable--ROWS-" portion of the syntax, was the following text:

http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/db2/rbafzhsetrs.htm
_i SET RESULT SETS i_
" _ARRAY host-structure-array_

host-structure-array identifies an array of host structures defined in accordance with the rules for declaring host structures. The array cannot contain a C NUL-terminated host variable.
...
Only one array can be specified in a SET RESULT SETS statement, including any RETURN TO CLIENT array result sets from nested calls to procedures.
..."

Regards, Chuck

On 03 Oct 2013 12:44, Ricky Thompson wrote:
Yeah I caught the comma missing as well. But even with the comma it
gives a syntax error. From what little I have found on people trying
to return more than one result set it looks like you can only return
one array result set.

I was trying to massage the data before I returned it to the client.

But this gives an error as well.

On 10/3/2013 2:22 PM, CRPence wrote:
Exec SQL Set Result Sets with return to client
Array :allOsDs for :allIndex Rows
, Array :favOsDs for :allIndex Rows
, Array :dptOsDs for :allIndex Rows
;


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.