Example 5 - MultiLoad

Teradata® MultiLoad Reference - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
MultiLoad
Release Number
20.00
Published
October 2023
Language
English (United States)
Last Update
2024-03-18
dita:mapPath
lji1691576359330.ditamap
dita:ditavalPath
kju1619195148891.ditaval
dita:id
sga1478609868891
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.