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



I am using V6R1 system.
I created a java stored procedure sp1, which takes some input parameters,
gets connection to database, and eventually generates a result set.
sp1 runs well from the iSeries navigator "run scripts" window.

Then I created a java stored procedure sp2, which calls sp1, and will return
a result set generated by sq1.
When I run sp2, it shows "return code = 0", but does not show the generated
result set.

If I go back to my java code, the code to generate the result set is
" rs[0] = ps.getResultSet();
While(rs[0].next()){
String tmp = rs[0].getString(1);
// insert this tmp string to some database table for debug purpose
}

It successfully finished the while loop.

Can someone shed some light on why I couldn't see the result set from SQL
interface? Sample codes are welcome too!


Yan

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.