Stored Procedure - Capturing error codes
Posted: Fri Jan 25, 2008 9:59 am
I have a Sybase stored procedure which does insert in 3 tables. I am calling the stored procedure using SYBASE OC stage.
I need to capture Successful completion or custom error code and message thrown by the stored procedure . These informations are inserted in the tracking table.
I am using Following to generate custom error
All these message are getting logged in Datastage Log.
Thanks in advance!
I need to capture Successful completion or custom error code and message thrown by the stored procedure . These informations are inserted in the tracking table.
I am using Following to generate custom error
Code: Select all
RAISERROR 20020 'Custom message'
Thanks in advance!