17.10 - Consuming the Response - Call-Level Interface Version 2

Teradata® Call-Level Interface Version 2 Reference for Workstation-Attached Systems

Product
Call-Level Interface Version 2
Release Number
17.10
Release Date
October 2021
Content Type
Programming Reference
Publication ID
B035-2418-061K
Language
English (United States)

The application program can consume the response parcels by calling DBCHCL repeatedly with the fetch function. As each parcel is encountered, the application must check whether it is an Error or Failure parcel, even when the return code from the fetch is zero. A zero return code only indicates that CLI and TDP have encountered no problems. To learn whether the database has detected problems, the parcel flavor must be checked.