Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 01 Jun 2010 @ 09:32:49 GMT


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


Subj:   Creating a BTEQ Error Log
 
From:   GRAHAM, Paul

Hi All

I'm running an insert statement in BTEQ. When this has finished loading I get a message telling me how many rows were successfully loaded and how many failed. Is there some script I can add to this to create an error log outlining which rows failed to load. I searched web and BTEQ manual but I'm unable to work out how to do this. The insert statement is as follows:

     .IMPORT VARTEXT '|' FILE=Drive:\Folder\File.txt; .REPEAT * USING
     Field1 (VARCHAR (8)),
     Field2 (VARCHAR(15))

     INSERT INTO Database.Table
     values
     (
     :Field1,
     :Field2
     );
     .QUIT;

Any help gratefully received.


Regards

Paul Graham



     
  <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