Response Processing - Call-Level Interface Version 2

Teradata Call-Level Interface Version 2 Reference for Mainframe-Attached Systems

Product
Call-Level Interface Version 2
Release Number
15.10
Language
English (United States)
Last Update
2018-10-07
dita:id
B035-2417
lifecycle
previous
Product Category
Teradata Tools and Utilities

After each segment is sent, its response should be processed as usual for any CLIv2 request. Depending on the response parcel, one of the following actions occurs:

 

If this response parcel is returned...

Then...

Failure

any previous segments have been discarded by the database.

Error

any previous segments have been retained by the database, and the failing request may be retried (if possible).

Such retry is not possible if other segments were sent before fetching the response containing the error.

Success (if Record, Indicator, or MultipartIndicator Response‑mode) or OK (if Field Response‑mode) when using Original Statementstatus; or StatementStatus when using Enhanced Statementstatus.

the next segment can be sent

When all segments have been sent, the stored procedure is compiled, and any compilation messages are returned. If the value of the Success, OK, or StatementStatus parcel Warning Code field is 5527, then compilation was successful but warning messages were returned; if the value is 5526, then compilation was not successful and error messages are returned. In both cases, the Success, OK, or StatementStatus parcel Activity Count field indicates the number of messages.

The format of the messages depends upon the CLIv2 Response Mode Option. For Field mode, each message is treated as a separate row consisting of a single VARCHAR column. For Record and Indicator modes, each message is in a separate Data parcel.