Parcel Header | Teradata Director Program - Parcel Header - Teradata Director Program

Teradata® Director Program Reference - 17.20

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Teradata Director Program
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-11-17
dita:mapPath
cki1641301536147.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
frc1470439950465
Product Category
Teradata Tools and Utilities

There are two formats of parcel headers. Definitions for the parcel headers are located on a release tape as shown in the following table:

For this language . . . Definitions are located in the. . .
IBM Assembler TDPXPH in library SAMPLIB (z/OS)
The first format is:


Original Parcel Header (TPH0) 
Field Name Offset Length Description
PH0FLAVR 00 1 bit A binary zero, indicating this header format. The mnemonic for the bit is PH0FALT
PH0FLAVR 0.1 15 bits An unsigned integer identifying the type of parcel body.
PH0LEN 02 2 bytes An unsigned integer specifying the length of the parcel, in bytes, including the parcel header and any body.
The second format is:


Alternate Parcel Header (TPH1)
Field Name Offset Length Description
PH1FLAVR 00 1 bit A binary zero, indicating this header format. The mnemonic for the bit is PH1FALT
PH1FLAVR 0.1 15 bits An unsigned integer identifying the type of parcel body.
PH1FILL1 02 2 bytes Not used: Set to binary zeroes.
PH1LEN 04 4 bytes An unsigned integer specifying the length of the parcel, in bytes, including the parcel header and any body.

A response will only contain a parcel with the enlarged header if the APH-response-permitted option was specified and the database supports the alternate header for that parcel. Furthermore, parcels whose length is less than or equal to 65535 can use either header format.