Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 26 May 2009 @ 23:20:39 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


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



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023