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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

LAYOUT<br />

Syntax Element<br />

CONTINUEIF<br />

condition<br />

Description<br />

following:<br />

position = value<br />

where position is an unsigned integer (never an asterisk) that specifies the<br />

starting character position of the field of every input record that contains the<br />

continuation indicator, and where value is the continuation indicator specified<br />

as a character constant or a string constant. <strong>Teradata</strong> T<strong>Pump</strong> uses the length of<br />

the constant as the length of the continuation indicator field.<br />

In the CONTINUEIF option, the condition specified as position = value is<br />

case-sensitive; verify that the correct case has been specified for this parameter.<br />

If the condition is true, <strong>Teradata</strong> T<strong>Pump</strong> forms a single record to be sent to<br />

<strong>Teradata</strong> <strong>Data</strong>base, by concatenating the next input record at the end of the<br />

current record. (The current record is the one most recently obtained from the<br />

external data source.)<br />

If the condition parameter is false, <strong>Teradata</strong> T<strong>Pump</strong> sends to <strong>Teradata</strong> <strong>Data</strong>base,<br />

the current input record either by itself, or as the last of a sequence of<br />

concatenated records.<br />

Note that the starting position of the continuation indicator field is specified as<br />

a character position of the input record. Character positions start with<br />

character position one. <strong>Teradata</strong> T<strong>Pump</strong> removes the continuation indicator<br />

field from the input records so that they are not part of the final concatenated<br />

result.<br />

For other fields whose startpos is specified as an unsigned integer, the startpos<br />

refers to the field position within the final concatenated result. Consequently,<br />

the continuation indicator field cannot be defined as all or part of a field<br />

defined with the FIELD, FILLER, or TABLE commands. Refer to the startpos<br />

parameter of the FIELD command.<br />

When the character set of the job script is different from the client character set<br />

used for the job (for example, on z/OS the job script must be in <strong>Teradata</strong><br />

EBCDIC when using the UTF8 client character set, or UTF-16 client character<br />

set can be used with the job script in UTF8), <strong>Teradata</strong> T<strong>Pump</strong> translates the<br />

specified value, which is either a character constant or a string constant, from<br />

the script character set form to the client character set form before evaluating<br />

the condition. <strong>Teradata</strong> T<strong>Pump</strong> uses the length of the constant in the client<br />

character set form as the length of the continuation indicator field.<br />

Caution:<br />

When using the UTF8 client set on the mainframe, be sure to<br />

examine the definition in International Character Set Support to<br />

determine the code points of the special characters required.<br />

Different versions of EBCDIC do not always agree as to the<br />

placement of these characters.<br />

The mappings between <strong>Teradata</strong> EBCDIC and Unicode can be<br />

referred to in Appendix E of International Character Set Support.<br />

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

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

Saved successfully!

Ooh no, something went wrong!