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 > One question on DB2 LOAD

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-16-11, 10:00
Ashwin@DB2 Ashwin@DB2 is offline
Registered User
 
Join Date: Sep 2009
Posts: 7
One question on DB2 LOAD

Hello Everyone,
I have a small query on DB2 LOAD. Sometimes there are errors/warnings in the message file like the one below:-

SQL0180N The syntax of the string representation of a datetime value is
incorrect. SQLSTATE=22007

SQL3185W The previous error occurred while processing data from row "F0-1" of
the input file.

Is there any was of getting the corresponding column name in the message file?

Regards
Ashwin
Reply With Quote
  #2 (permalink)  
Old 06-16-11, 11:38
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Have a look at the FOR EXCEPTION clause of the LOAD command. That allows you to specify a table where erroneous rows will be copied to. So you can do the load and analyze the problematic rows (and only those) afterwards.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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