Checking Status Variables - Advanced SQL Engine - Teradata Database

SQL Stored Procedures and Embedded SQL

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
vqj1592443206677.ditamap
dita:ditavalPath
vqj1592443206677.ditaval
dita:id
B035-1148
lifecycle
previous
Product Category
Teradata Vantageā„¢

Include a test of SQLCODE (or SQLSTATE if you are not using SQLCA) after each execution of an embedded SQL or stored procedure statement to ensure that the statement completes successfully. You also should always write application code, or use appropriate condition handlers if the application is a stored procedure, to handle unacceptable status variable values.