25.09.2015 Views

Teradata Parallel Data Pump

Teradata Parallel Data Pump Reference - Teradata Developer ...

Teradata Parallel Data Pump Reference - Teradata Developer ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 3: <strong>Teradata</strong> T<strong>Pump</strong> Commands<br />

FIELD<br />

FIELD<br />

Purpose<br />

The FIELD command specifies a field of the input record; it can also contain a NULLIF<br />

expression. All fields specified by FIELD commands are sent to <strong>Teradata</strong> <strong>Data</strong>base. Only<br />

fields relevant to the tasks using this layout need be specified.<br />

Syntax<br />

.FIELD fieldname startpos datadesc<br />

A<br />

fieldexpr<br />

NULLIF nullexpr<br />

A<br />

DROP<br />

LEADING<br />

TRAILING<br />

BLANKS<br />

NULLS<br />

AND<br />

TRAILING<br />

LEADING<br />

NULLS<br />

BLANKS<br />

B ;<br />

KEY<br />

B<br />

3021A019<br />

where<br />

Syntax Element<br />

fieldname<br />

Description<br />

Name of an input record field to which:<br />

1 a DML statement refers,<br />

2 a nullexpr of a FIELD command or condition expression of a LAYOUT<br />

command refers, or<br />

3 a condition expression of the IMPORT command APPLY clause refers.<br />

A fieldname must obey the same rules for its construction as <strong>Teradata</strong> SQL<br />

column names.<br />

fieldname can be referenced in other FIELD commands via NULLIF and field<br />

concatenation expressions, and in APPLY WHERE conditions in IMPORT<br />

commands.<br />

startpos<br />

Starting position of a field of the data records in an external data source<br />

It may be specified as an unsigned integer which is a character position starting<br />

with 1, or as an asterisk which means the next available character position<br />

beyond the preceding field. Nothing prevents redefinition of positions of input<br />

records by specifying the same positions in multiple FIELD commands. See the<br />

example below.<br />

Note that where input records may be continued by use of the CONTINUEIF<br />

condition, a startpos specified as an unsigned integer refers to a character<br />

position in the final concatenated result from which the continuation indicator<br />

fields have been removed. Refer to the description of the condition parameter of<br />

the LAYOUT command.<br />

<strong>Teradata</strong> <strong>Parallel</strong> <strong>Data</strong> <strong>Pump</strong> Reference 133

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!