15.10 - ANSI-Compatible Mode Communications Variables - Preprocessor2 for Embedded SQL

Teradata Preprocessor2 for Embedded SQL Programmer Guide

prodname
Preprocessor2 for Embedded SQL
vrm_release
15.10
category
Programming Reference
featnum
B035-2446-035K

When writing PL/I programs for ANSI-compatible mode, define a SQLCODE variable. Defining a SQLSTATE variable is optional. If both variables are defined, each contains valid error codes.

SQLSTATE and SQLCODE are documented in SQL Stored Procedures and Embedded SQL (B035‑1148).