|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ESQL Question |
« View previous topic :: View next topic » |
Author |
Message
|
pfaulkner |
Posted: Fri May 09, 2003 12:39 pm Post subject: ESQL Question |
|
|
Master
Joined: 18 Mar 2002 Posts: 241 Location: Colorado, USA
|
I have a compute node in which I use a CAST command. It is possible the the Cast could fail. Is there any way to do something like a try-catch to catch and possible errors like this and handle within the esql?
thanks |
|
Back to top |
|
 |
kirani |
Posted: Fri May 09, 2003 4:35 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
There is nothing like try-catch block in ESQL.
You will have to use try-catch node to do this, In the catch terminal investigate the exceptionList and look for that particular CAST error. The same can be done in the failure terminal of the Comput node also. In either case all changes made by the compute node will be rolled-back. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
wmqiguy |
Posted: Mon May 12, 2003 10:47 am Post subject: |
|
|
 Centurion
Joined: 09 Oct 2002 Posts: 145 Location: Florida
|
Take a look at the ESQL Reference for the THROW command. I think that will help you achieve what you are trying to do. |
|
Back to top |
|
 |
pfaulkner |
Posted: Mon May 12, 2003 11:19 am Post subject: |
|
|
Master
Joined: 18 Mar 2002 Posts: 241 Location: Colorado, USA
|
That's actually the opposite of what I want. Throw allows you to throw a user definied exception I want to be able to catch a system exception within a compute node so I can act upon it with ESQL code. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|