The columns or parameters are listed in the order in which they were defined.
The attributes are returned as shown in the following table.
Attribute | Data Type | Nullable? | Description |
---|---|---|---|
Parameter Name | VARCHAR(30) | No | The name of a parameter in the
macro. The system returns the set of attributes shown in this attribute table for each column or parameter. The following characteristics also
apply:
Host Data Characteristics: Interpret as the equivalent of CF, or CHARACTER(n) data type. Host Data Characteristics: When DATEFORM=ANSIDATE, this column should be described externally as CHARACTER(10). Format Characteristics: With an explicit format, DATE. With an implicit format created in ANSIDATE mode, ‘YYYY/MM/DD’. |
Data Type | CHARACTER(2) | Yes | The data type for the Parameter
Name. See Data Type Codes for a list of the data type codes and their meanings The server character data types LATIN, UNICODE, GRAPHIC, KANJISJIS, and KANJI1 are distinguished with respect to CF and CV by their respective value for the Character Type column. |
Comment | VARCHAR (255) | Yes | The contents of the optional comment field for the macro, if a comment was created. |
Nullable | CHARACTER | Yes | Indicates whether the macro
parameter specified in the Parameter Name field is nullable.
|
Format | CHARACTER(30) | Yes | Display format for the data type. For a UDT, the displayed format is the format associated with the external type of the UDT. For data type display formats, see Teradata Vantage™ - Data Types and Literals, B035-1143. |
Title | VARCHAR (60) | Yes | The title for Parameter Name, if used. |
Max Length | INTEGER | Yes | Return the length in bytes for the
macro parameters specified in Parameter Name. MaxLength is the length of the external CharFix representation of the parameter, defined as CHARACTER(MaxLength) in USING clauses and any other place this needs to be specified. Note that while MaxLength is usually expressed as the internal size, presentation of the external size is more appropriate for these data types. For the DATE type MaxLength is 4, representing the internal storage size. For CHARACTER data, Max Length is the length of the parameter declaration in bytes. For HELP MACRO, requests return the length of the macro parameter. For UDTs, Max Length is the maximum length of the external type associated with the UDT formatted as -(10)9. See the external representation for each individual DateTime and Interval type in Teradata Vantage™ - Data Types and Literals, B035-1143 to determine the MaxLength values. You can use the StatementInfo parcel to return the description of items within the Data Field of the corresponding indicator mode Record parcels. For example, the FastLoad .TABLE command can be executed in Indicator Mode to get the additional information of data type and length of all attributes. That information can then be used to fetch the data correctly in any database release. |
Decimal Total Digits | SMALLINT | Yes | Indicates the total number of digits
for decimal data. For INTERVAL types, returns a value from 1–4 representing the number of digits in the leading field of the interval (number of non-fractional digits for INTERVAL SECOND). This column is null for other TIME and TIMESTAMP data types. |
Decimal Fractional Digits | SMALLINT | Yes | Indicates the decimal precision of
the parameter in Parameter Name. If the Type is TIME or TIMESTAMP types, or any INTERVAL type with a SECOND field, this column returns a value of 0–6, indicating the fractional precision of seconds. For INTERVAL types without a SECOND field, the column returns null. Null for other data types. |
Range Low | FLOAT | Yes | Always null. BETWEEN clause is included in column constraint. |
Range High | FLOAT | Yes | Always null. BETWEEN clause is included in column constraint. |
Uppercase | CHARACTER | Yes | Applies if the type is CHARACTER or
VARCHAR.
|
Table/View? | CHARACTER | No | The object type. See TVM Kind Codes. HELP MACRO requests always return a code of M for macro. |
Default Value | VARCHAR (255) | Yes | Returns the default value (as text)
for the parameter. The value is null if there is no default value. |
Character Type | SMALLINT | Yes | Returns a code identifying the
character data type for the parameter shown in Parameter Name.
If the data type of the column is not character, returns null. |
IDCol Type | CHARACTER(2) | Yes | Returns a code for the type of
identity column.
|
UDT Name | VARCHAR(61) | Yes | Returns the unqualified name of the
UDT. If a UDT does not exist, the parameter is NULL. |
Temporal Column | CHARACTER(2) | Yes | Reports whether a column is
temporal or not and if it is part of a Temporal Relationship
constraint.
For information about temporal columns, see Teradata Vantage™ - ANSI Temporal Table Support, B035-1186 and Teradata Vantage™ - Temporal Table Support, B035-1182. |
Current ValidTime Unique? | CHARACTER(2) | Yes | Reports whether a column is a
UNIQUE Current VALIDTIME column or not. For information about temporal columns, see Teradata Vantage™ - ANSI Temporal Table Support, B035-1186 and Teradata Vantage™ - Temporal Table Support, B035-1182. |
Sequenced ValidTime Unique? | CHARACTER(2) | Yes | Reports whether a column is a
UNIQUE Sequenced VALIDTIME column or not. For information about temporal columns, see Teradata Vantage™ - ANSI Temporal Table Support, B035-1186 and Teradata Vantage™ - Temporal Table Support, B035-1182. |
NonSequenced ValidTime Unique? | CHARACTER(2) | Yes | Reports whether a column is a
UNIQUE Nonsequenced VALIDTIME column or not. For information about temporal columns, see Teradata Vantage™ - ANSI Temporal Table Support, B035-1186 and Teradata Vantage™ - Temporal Table Support, B035-1182. |
Current TransactionTime Unique? | CHARACTER(2) | Yes | Reports whether a column is a
UNIQUE Current TRANSACTIONTIME column or not. For information about temporal columns, see Teradata Vantage™ - ANSI Temporal Table Support, B035-1186 and Teradata Vantage™ - Temporal Table Support, B035-1182. |
Parameter Dictionary Name | VARCHAR(128) | No | The attributes shown
in this section are derived from and supersede the corresponding
older Parameter Name, Title, and UDT Name attributes, while
providing additional functionality. These attributes are returned for each parameter in the specified method. The older attributes are retained for compatibility with legacy applications. For details on the new attributes, see the topics beginning with Object Name and Title Data in HELP Reports. |
Parameter SQL Name | VARCHAR(644) | No | |
Parameter Name Uescape | VARCHAR(1) | Yes | |
Dictionary Title | VARCHAR(256) | Yes | |
SQL Title | VARCHAR(1256) | Yes | |
Title Uescape | VARCHAR(1) | Yes | |
UDT Dictionary Name | VARCHAR(128) | Yes | |
UDT SQL Name | VARCHAR(644) | Yes | |
UDT Name Uescape | VARCHAR(1) | Yes |