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



Hi,

There is one of IBM RedBooks - "DB2 UDB for Iseries Stored Procedures and
Triggers" (SG24-6503-00).
In this nice book you can find the detailed explanation for your question. 

I hope you will find this useful.

Darek


-----Oryginalna wiadomość-----
Od: John Wallroff [mailto:jwallroff@xxxxxxxxxxxxxxxxxxxxxxx]
Wysłano: 6 lutego 2004 22:57
Do: 'java400-l@xxxxxxxxxxxx'
Temat: SQLRPGLE Stored Procedure Error Handling.


We have written a few SQLRPGLE programs that return result sets for stored
procedures for result sets that are too complicated to create using simple
SQL statements.  We simply do all the data manipulation needed in the RPG
section and move the data needed for the result set into a multioccurrence
data structure.  This ends up being the only SQL in the program.

 

C/exec sql                              

C+ SET RESULT SETS ARRAY :RS FOR :X ROWS

C/end-exec                              

 

RS is the name of the data structure and X is the number of valid
occurrences.

 

My question is, if a problem happens in the RPG area of the code how would
you suggest communicating to the Java program that calls the stored
procedure that a problem has occurred in the RPG section of the code.  What
the problem is isn't important right now, just how to communicate that one
has occurred.

 

Thanks.

 

John.

John C. Wallroff
Senior Programmer/Analyst
IBM Certified AS/400 Programmer
UNIVERSITY OF NE FOUNDATION
1010 Lincoln Mall, Suite 300
Lincoln, NE 68508-2886
(402) 472-0109
 <mailto:jwallroff@xxxxxxxxxxxxxxxxxxxxxxx>
jwallroff@xxxxxxxxxxxxxxxxxxxxxxx

 

_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.