Archives of the TeradataForum
Message Posted: Tue, 01 Jun 2010 @ 09:32:49 GMT
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
|