When using CLIv2, the Fetch function returns the output parcels. The output parcel sequence is as follows:
The following sections describe the responses for each of the function codes in the Request parcel shown on the previous page.
Response to Function Code 1 (List Transactions)
If in‑doubt Teradata transactions are found, the Success parcel activity count indicates how many transactions were found. The response includes one record parcel for each transaction.
The record parcel includes the following:
Flavor Field |
Length Field |
Parcel Body Fields |
|
10 |
11 to 40 |
SessionNo: StringLength: RunUnitID: |
4 byte unsigned integer 2 byte unsigned integer 1 to 30 bytes |
Response to Function Codes 2 and 4 (Terminate All)
The Success parcel activity count indicates the number of completed Teradata transactions.
Response to Function Codes 3 and 5 (Terminate Some)
The Success parcel activity count indicates the number of terminated Teradata transactions. If a specified session either is not found or does not have an in‑doubt transaction, then a failure parcel will be returned and no action will be taken on any sessions.
Response to Function Code 6 (List Coordinators)
The response will include one record parcel for each coordinator that has in‑doubt sessions on the Teradata Database. The record parcel includes:
Flavor Field |
Length Field |
Parcel Body Fields |
|
10 |
7 to 36 |
StringLength: CoordinatorID: |
2 bytes 1 to 30 bytes |