17.00 - Examples: Redirection of Inputs and Outputs - Parallel Data Pump

Teradata® Parallel Data Pump Reference

prodname
Parallel Data Pump
vrm_release
17.00
created_date
June 2020
category
Programming Reference
featnum
B035-3021-220K

The following examples show various ways to redirect stdin and stdout for the UNIX system.

Example 1

This example specifies both an input file and an output file. The Teradata TPump script is in /home/tpuser/tests/test1 and the job output is written to /home/tpuser/tests/out1.

tpump </home/tpuser/tests/test1 >/home/tpuser/tests/out1

Example 2

This example specifies only an input file. The Teradata TPump script is in /home/tpuser/tests/test1 and the job output is written to stdout, which ordinarily would be the terminal.

tpump </home/tpuser/tests/test1

Example 3

This example specifies only an output file. Enter the TPump script via stdin, normally at the terminal. When input is complete, type Ctrl-D to indicate end-of-file. Type Ctrl-D by simultaneously pressing the Control key and the letter D. The job output is written to /home/tpuser/tests/out1.

tpump >/home/tpuser/tests/out1

Example 4

This example specifies neither an input nor an output file. Teradata TPump commands are typed at a terminal via stdin and job output is written to the terminal via stdout.

tpump