Example 5 - MultiLoad

Teradata MultiLoad Reference

Product
MultiLoad
Release Number
16.10
Published
May 2017
Language
English (United States)
Last Update
2018-07-11
dita:mapPath
cgb1488824663145.ditamap
dita:ditavalPath
Audience_PDF_product_tpt_userguide_include.ditaval
dita:id
B035-2409
lifecycle
previous
Product Category
Teradata Tools and Utilities

Converting Data

The following valid example converts numeric data to different types of numeric data:

Assuming you have a target table:

CREATE TABLE MLTBL,FALLBACK
F1 INTEGER,
ABYTEINT BYTEINT,
ASMALLINT SMALLINT,
AINTEGER INTEGER,
ABIGINT BIGINT,
AFLOAT FLOAT)
PRIMARY INDEX (F1);

You can specify FIELD command for the input records:

FIELD FF1 * INTEGER;
FIELD FF2 * decimal(2,1);
FIELD FF3 * decimal(4,1);
FIELD FF4 * decimal(9,2);
FIELD FF5 * decimal(18,2);
FIELD FF6 * decimal(18,2);

The decimal data type will be converted to BYTEINT, SMALLINT, etc.