Input Record Format - Parallel Transporter

Teradata Parallel Transporter Reference

Product
Parallel Transporter
Release Number
16.10
Published
July 2017
Language
English (United States)
Last Update
2018-06-28
dita:mapPath
egk1499705348414.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-2436
lifecycle
previous
Product Category
Teradata Tools and Utilities

The internal format of each input record intended for use with the MultiLoad INMOD Adapter operator must conform to the specified schema.

The MultiLoad INMOD Adapter operator requires each field to be of a specified length. When no length is specified, the operator assumes the conventional default length.

The MultiLoad INMOD Adapter operator supports both fixed- and variable-length input records.

For records with a two-column schema such as:

(
  COL1 INTEGER,
  COL2 VARCHAR(10));

each record is comprised of:

  • A four-byte integer, because 4 is the INTEGER length,
  • A two-byte length indicator for the VARCHAR field, and
  • The CHAR data of the length indicated in the two-byte length indicator field.

The following examples show the byte order when running Teradata PT on an Intel processor:

  • If, for example, the integer has a decimal value of 100 and the VARCHAR is ASCII '12345', then the input record appears in hexadecimal notation as:
    X'64 00 00 00 05 00 31 32 33 34 35'
  • If the data in the input record is in indicator mode, a single precedes the indicator byte:
    X'00 64 00 00 00 05 00 31 32 33 34 35'