Record (In Record Mode) - Teradata Tools and Utilities

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

Product
Teradata Tools and Utilities
Release Number
17.00
Published
June 2020
Language
English (United States)
Last Update
2020-06-18
dita:mapPath
lvt1544831946862.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
B035-2417
lifecycle
previous
Product Category
Teradata Tools and Utilities

Purpose

In Record Mode, nulls are not explicitly identified in the Record parcel, when Return-statement-info 'Y' was not specified.

Usage Notes

Note that a Teradata SQL SHOW TABLE statement returns only one Record parcel.

Within the Record parcel, each line of a table is separated from the next by hex 0D (decimal 13).

This parcel is generated by the database.

Parcel Data

The following information applies to the Record parcel (in Record Mode).

Flavor Parcel Body Length Parcel Body Fields
10 1 to maximum body size Data: organized as:

item 1, item2, . . . , item i, . . . , item n

If in Record Mode, the Record parcel for an ECHO statement does NOT contain zeros.

Field Notes

The Data Field contains items with characteristics as follows:
  • The order of the items. Each expression in the SELECT statement generates one item in the Record Mode Record parcel, in the order listed in the SELECT statement. That is, the ith item in the Record Mode Record parcel contains the result of the ith expression in the SELECT statement.
  • The data type of each item. Each expression has a resulting data type, as governed by data type conversion rules.

    One method for obtaining the resulting data type of an expression is to use the HELP COLUMN statement on that expression.

    For details, see the description of the HELP COLUMN statement in the Teradata Vantage™ - SQL Data Definition Language Syntax and Examples, B035-1144.

    An alternate method for obtaining the resulting data type of an expression is to consult the data type conversion rules.

    The rules begin with the data type of the elementary operands (columns in CREATE TABLE statements, variables in USING row descriptors, constants in expressions, and built-in values in expressions).

    The rules then account for the effects of operations on the elementary operands (explicit data type conversion in description phrases of expressions, arithmetic operations in expressions, character operations in expressions, and functions and aggregate operations in expressions).

    For more information, see Teradata Vantage™ - Data Types and Literals, B035-1143 and Teradata Vantage™ - SQL Functions, Expressions, and Predicates, B035-1145 for pointers to the rules.

  • The length and format of each item.

    The contents of each item are in client internal format as determined by the resulting data type of the expression. See Data Type.

    For the form that a null value takes in each of these data types, see “Manipulating Nulls” in Teradata Vantage™ - SQL Fundamentals, B035-1141.