Archives of the TeradataForum
Message Posted: Tue, 01 Jun 2010 @ 09:32:49 GMT
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.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|