ERROR HANDLING
Translation reference for the conversion of BTEQ Error Handling to Snowflake Scripting equivalent
The BTEQ error handling capabilities are based on the Teradata Database error codes. These are the standard error codes and messages produced in response to user-specified Teradata SQL statements. A BTEQ user cannot change, modify or delete these messages.
For more information regarding BTEQ Error Handling, check here.
Sample Source Patterns
Basic BTEQ Error Handling Example
The error conditions content is relocated in different statements in case ERRORCODE is different to zero, otherwise it can be located as the original code. First, the query above the if statement is relocated within a BEGIN - END block, where in case of an exception it will be caught in the EXCEPTION block. Second of all, the ERRORCODE variable will be changed to the variable declared indicating their SQLCODE with an EWI indicating that the exact number of the SQLCODE is not the same as the ERRORCODE in BTEQ.
Known Issues
No issues were found.
Related EWIs
SSC-FDM-TD0013: The Snowflake error code mismatch the original Teradata error code.
Last updated