Archives of the TeradataForum
Message Posted: Tue, 26 May 2009 @ 23:20:39 GMT
Subj: | | Re: MLOAD error UTY1616: A .DML statement must be |
|
From: | | sivaram nelluri |
I would suggest you to add a .dml label ; before the insert into statement after you define the layout. And you have to
use the same dml label during the apply phase.
Ex:
.begin import mload tables
${dbname}.
errortables
${dbname}.ET_
${dbname}.UV_
sessions 20
ampcheck none; /* run this job even if an AMP is down */
.layout XXXX_layout;
.field column1 * varchar(XX) NULLIF column1 =' ' ;
.....
.......
.dml label TableInsert;
INSERT INTO ${dbname}.
(column1,....column n)
VALUES(
:field1,
...
:fieldn
);
.import infile
format vartext '|' DISPLAY ERRORS NOSTOP
layout _layout
apply TableInsert;
This worked for me.
Thanks & Regards
Siva Nelluri
|