Example 3 - MultiLoad

Teradata® MultiLoad Reference - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
MultiLoad
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2024-03-18
dita:mapPath
lji1691576359330.ditamap
dita:ditavalPath
kju1619195148891.ditaval
dita:id
sga1478609868891
Product Category
Teradata Tools and Utilities

Invalid Concatenation

A field that has been defined by a concatenation of fields cannot be concatenated.

The following example shows the error message generated for this condition:

0009 .LAYOUT LAY3S;
0010 .FIELD FIELD1 *  INTEGER;
0011 .FIELD FIELD2 *  INTEGER;
0012 .FIELD FIELD3 *  CHAR (1);
0013 .FIELD FIELD4 *  CHAR (2);
0014 .FIELD FIELD5  FIELD3||FIELD4;
0015 .FIELD FIELD6  FIELD3||FIELD4||FIELD5;
0016 .FIELD FIELD7  FIELD3||FIELD4||FIELD5||FIELD6;
0017 .DML LABEL LABELA;
0018 INSERT TBL3S
(FIELD1,FIELD2,FIELD3,FIELD4,FIELD5,FIELD6,FIELD7) VALUES
(:FIELD1,:FIELD2,:FIELD3,:FIELD4,:FIELD5,:FIELD6,:FIELD7);
0019 .IMPORT INFILE INPUT FREE
    LAYOUT LAY3S
    APPLY LABELA;
0020 .END MLOAD;
     15:03:06 - MON OCT 22, 1990
     UTY0215 It is invalid to concatenate a field that
     has been defined by a concatenation of fields.
     15:03:06 - MON OCT 22, 1990
     UTY1414 The previous error occurred on statement
     number '15'.