Table of Contents

Search

  1. Abstract
  2. Supported Versions
  3. Writing Custom Scripts to Run Batch Jobs

Writing Custom Scripts to Execute Batch Jobs

Writing Custom Scripts to Execute Batch Jobs

Error Handling and Transaction Management

Error Handling and Transaction Management

The stored procedures are transaction-enabled and can be rolled back if an error occurs during execution.
After you invoke a stored procedure, check the return code (OUT_RETURN_CODE) in your error handling:
  • If any failure occurred during execution (OUT_RETURN_CODE <> 0),
    immediately
    roll back any changes. Wait until
    after
    you have successfully rolled back the changes before you invoke the stored procedure again.
  • If no failure occurred during execution (OUT_RETURN_CODE = 0),
    commit
    any changes.

0 COMMENTS

We’d like to hear from you!