If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Details of Rejected rows from DB2 Import

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-23-10, 13:14
rockycj_dba rockycj_dba is offline
Registered User
 
Join Date: Apr 2009
Posts: 17
Details of Rejected rows from DB2 Import

I'm using DB2 v 9.1 LUW. I'm importing a pipe-delimited text file and want to know if there is a way of outputting the rejected records into a text file?

SQL3149N "30467" rows were processed from the input file. "0" rows were
successfully inserted into the table. "30467" rows were rejected.

If so, could please give me an example or details on how to do this?

Thank you.


CC
Reply With Quote
  #2 (permalink)  
Old 08-23-10, 14:41
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
The import message file (the one you specify with the MESSAGES clause) list every problem line. The LOAD command can move failing lines into the exception table.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On