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 > Load utility log info problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-17-09, 05:32
shahnazurs shahnazurs is offline
Registered User
 
Join Date: May 2005
Posts: 25
Load utility log info problem

Hi,

I use the following code in UNIX to execute delimited flat file

Code:
db2 -x "load from 'abc' of del modified by coldel~ replace into a.emp" > a.log
if any error happens i.e. data field size is less and is not able to store value from flat file or any other database related error it logs error like

Code:
SQL3107W  There is at least one warning message in the message file.
How can I find out exact error occured while loading?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 06-17-09, 05:48
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
chk load command options :
[MESSAGES msg-file]
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #3 (permalink)  
Old 06-17-09, 06:13
shahnazurs shahnazurs is offline
Registered User
 
Join Date: May 2005
Posts: 25
Thanks for your suggestion

I gave like below, it thrown me error

Code:
db2 -x "load from 'abc' of del modified by coldel~ MESSAGES=a replace into a.emp" > a.log

saying

Code:
SQL3016N  An unexpected keyword "MESSAGES=conn" was found in the filetmod
parameter for the filetype.
Let me know where do I insert MESSAGES in my snippet.

Thanks.
Reply With Quote
  #4 (permalink)  
Old 06-17-09, 07:02
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
MESSAGES=a --- Space between the words. No =
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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