Use this template to define a column in a table, or a field in a segment or file. You can use this template to define columns or fields for both sources and targets.
The template defines the relationship between the column or field and the table, segment, or file that contains the column or field. You must include this template if you defined sources or targets by using the Table.tag template (see page "Table.tag").
Table 16 provides information about each token in the
template.
Token | Description | Allowed values |
---|---|---|
Entity parameters | ||
*ColumnName | The name of the column or field.
The name must be unique within a table or field. This token is required. | A text string, up to 80 bytes in length. |
*ColumnDescription | The short description of the column or field.
This token is optional. | A text string, up to 254 bytes in length. |
*ColumnNotes | The long description of the column or field.
This token is optional. | A text string, up to 32700 bytes in length. |
*ColumnOffsetFromZero
| The offset in bytes from the start of the file to where the data for this field starts. | A numeric value or 0. |
*ColumnOrdinalNumber
| The ordinal position of the column. Usually the same as the *ColumnPositionNumber. | A numeric value or 0. |
*ColumnUserActions | The actions that a user can perform on this column or field.
This token is optional. | A text string, up to 254 bytes in length. |
*ColumnLength | The length of the column or field being created.
This token is required. | A numeric value. |
*ColumnPrecision | The precision of the column or field for columns or fields with a decimal
data type.
This token is required. | A numeric value or 0. |
*ColumnKeyPosition | If this column is part of a key, the column's position within the
key.
This token is required. | A numeric value. If there is no precision value, specify 0. |
*ColumnPositionNumber | A number, starting with 0, that indicates the order of the column within
the row.
This token is required. | A numeric value. |
*ColumnAllowsNulls | A flag that specifies whether the column or field allows null
data.
This token is required. | One of the following values:
|
*ColumnDataIsText | A flag that specifies whether the column or field contains only text data
for character types.
This token is required. | One of the following values:
|
*ColumnEditionType | Identifies whether the column holds Data Warehouse Center edition information. | One of the following values:
|
*ColumnNativeDataType | The data type of the column or field as defined to the database manager
or file system.
This token is required. |
One of the following values:
|
*ColumnNativeDataType (continued) | The data type of the column or field as defined to the database manager
or file system.
This token is required. | One of the following values:
|
| ISV_NATIVE_DATETIMEYEARTOFRACTION | |
Relationship parameters | ||
*CurrentCheckPointID++ | An index, starting with 0, that increases each time it is substituted in
a token.
This token is required. | A numeric value. |
*DatabaseName | The business name of the warehouse source or warehouse target.
This token is required. | A text string, up to 40 bytes in length. |
*TablePhysicalName | The physical name of the table or file that contains the column as
defined to the database manager or file system.
This token is required. | A text string, up to 80 bytes in length. |
*TableOwner | The owner, high-level qualifier, collection, or schema of the table that
contains the column.
This token is required. | A text string, up to 15 bytes in length. |
*CurrentCheckPointID++ | An index, starting with 0, that increases each time it is substituted in
a token.
This token is required. | A numeric value. |
Table 17 provides example values for each token to
illustrate the kind of metadata that you might provide for each token.
Table 17. Example values for Column.tag tokens
Token | Example value |
---|---|
*ColumnName | Country_code |
*ColumnDescription | This column contains the country code |
*ColumnNotes | The valid values for this column can be found in the Geography reference manual |
*ColumnOffsetFromZero
| 0 |
*ColumnOrdinalNumber
| 0 |
*ColumnUserActions | User cannot directly view a single column |
*ColumnLength | 10 |
*ColumnPrecision | 0 |
*ColumnKeyPosition | 0 |
*ColumnAllowsNulls | ISV_NULLSNO |
*ColumnDataIsText | ISV_ISTEXTYES |
*ColumnNativeDataType | ISV_NATIVE_CHAR |
*DatabasePhysicalName | FINANCE |
*TableOwner | DB2ADMIN |
*TablePhysicalName | GEOGRAPHY |
*CurrentCheckPointID++ | 8 |