Thanks Alan
We currently use your second option, which we thought was a reasonable
approach to return "business logic" warnings and errors. We have been
questioned on this as an approach and asked if we can do it via JDBC
Exceptions and warnings.
I think the bottom line is that we can't do it for "business logic" and for
system level / communications errors the JDBC driver will already take care
of throwing exceptions for us.
Thanks
Neill
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Campin
Sent: 22 August 2009 00:01
To: Midrange Systems Technical Discussion
Subject: Re: Warnings and errors in a Stored procedure
If you return them as an array (Ugly, Ugly) or as a result set.
On Fri, Aug 21, 2009 at 3:32 PM, Neill Harper <neill.harper@xxxxxxxx> wrote:
Is it possible to return multiple warnings from an RPG externally defined
stored procedure?
So that JDBC can read multiple warning after a successfully call to the
proc.
Cheers
Neill
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.