16.20 - Response Processing - Teradata Tools and Utilities

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

prodname
Teradata Tools and Utilities
vrm_release
16.20
created_date
September 2019
category
Programming Reference
featnum
B035-2417-108K

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 Teradata Database.
Error any previous segments have been retained by Teradata 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 Statement-status; or StatementStatus when using Enhanced Statement-status. 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.