I am very new to DB2 world and I would like to know the Implementation of Error Handling in DB2 stored procedures along with rollback.
Example Scenario: A db2 stored proc have different dml commands like Insert and updates. During the time of inserts and updates I need to implement error handling. Also if there is a dependency between Inserts and updates. If all the inserts got successful and something in the updates failed with in single stored procedure then all the inserts must rollback and should display the error message.
Waiting for the reply…