Display Format | SQL External Routine Programming | Teradata Vantage - Display Format - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
rin1593638965306.ditamap
dita:ditavalPath
rin1593638965306.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

If a UDF returns an SQLSTATE value other than success, a BTEQ session displays an error.

IF the SQLSTATE category is … THEN the display format is …
not a warning
*** Failure 7504 in UDF/XSP  dbname.udfname: SQLSTATE  ccsss: <text>

where:

  • 7504 is the Teradata designated error code for user-defined functions, user-defined methods, and external stored procedures
  • dbname.udfname is the name of the UDF and the name of the database in which the UDF resides
  • ccsss is the value that the UDF sets the SQLSTATE output argument to, according to the table in SQLSTATE Values.
  • <text> is the value of the error message output argument, if the UDF uses parameter style SQL
warning
*** Warning: 7505 in UDF/XSP  dbname.udfname: SQLSTATE 01H xx: <text>

where:

  • 7505 is the Teradata designated warning code for user-defined functions, user-defined methods, and external stored procedures
  • dbname.udfname is the name of the UDF and the name of the database in which the UDF resides
  • 01H xx is the value that the UDF sets the SQLSTATE output argument to, according to values for the warning category in the table in SQLSTATE Values.
  • <text> is the value of the error message output argument, if the UDF uses parameter style SQL