16.20 - Using Teradata PT Easy Loader - Parallel Transporter

Teradata® Parallel Transporter User Guide

Product
Parallel Transporter
Release Number
16.20
Published
August 2020
Language
English (United States)
Last Update
2020-08-27
dita:mapPath
uah1527114222342.ditamap
dita:ditavalPath
Audience_PDF_product_tpt_userguide_include.ditaval

Teradata PT Easy Loader is a command-line interface for loading data from Teradata Database table(s) without requiring you to write a Teradata PT script.

Example 1

To load data from Teradata Database table(s), you can specify all job options that describe the data source in a job variables file, as follows:

SourceTdpId  = 'TdpId',
SourceUserName  = 'username',
SourceUserPassword = 'userpassword',
SelectStmt = 'Teradata SQL SELECT statement'
Rather than specifying in a SELECT statement in the job variables file, you can specify the table name of the source table, as follows:
SourceTable = 'tablename'

Then execute the following command:

tdload -t  tablename  -u  username  -j  jobvariablesfile

Example 2

To load data from Teradata table(s), you can specify all job options that describe the data source as well as the target table in the job variable files, as follows:

TargetTable = 'tablename',
TargetTdpId  = 'TdpId',
TargetUserName  = 'username',
TargetUserPassword = 'userpassword',
SourceTdpId  = 'TdpId',
SourceUserName  = 'username',
SourceUserPassword = 'userpassword',
SelectStmt = 'Teradata SQL SELECT statement'

Then execute the following command:

tdload -j  jobvariablesfile

For information on defining a job variables file and on executing the tdload command, see Teradata PT Easy Loader.