16.20 - Display Format - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

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