Professional Documents
Culture Documents
Teradata Utilities - 3
Teradata Utilities - 3
(Script creation)
TPUMP:
The basic steps involved in the TPUMP script creation:
(a)
NOTE: The logtable in case of all the 3 loaders stores the information
about the progress during the load.
Begin load process, add Parameters, naming the error
table: In this section of the script the parameters such as
SESSION, PACK FACTOR, ERROR LIMIT are defined based on the
requirements.For ex. the PACK FACTOR has been defined as 40
which means that TPUMP would pack 40 rows at a time and load.
The error table names are also specified here.
(c)
Defining the INPUT flat file: The .LAYOUT command is used to
define the layout. The different layouts supported by TPUMP are
mentioned in fig 1. The column names and their data types are
listed using the .FIELD command. The * is used as a separator
between the columns or the .FILLER command for positioning the
cursor for the next field.
(b)
Fig 1
(d)
(e)
(f)
(g)
(h)
Defining the INPUT flat file: The input flat file structure is
defined. Data input files come in a variety of formats but MultiLoad
is flexible enough to handle many of them. MultiLoad supports the
following five format options: BINARY, FASTLOAD, TEXT, UNFORMAT
and VARTEXT (same as a TPUMP - refer to fig 1)
References:
Teradata Utilities Breaking the Barriers by Tom Coffing
www.teradata.com
Contributed By:
Rajalakshmi
SE
Best Buy
MDC