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 > db2 load error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-01-10, 02:31
oracle10gsingh oracle10gsingh is offline
Registered User
 
Join Date: Nov 2007
Posts: 72
db2 load error

Hi ALL ,

I am trying to load into a table here is the ddl of the table

MSC_MERGE_FILE_TAB (
FILENAME VARCHAR(2000),
MEDIATION_TIMESTAMP TIMESTAMP,
MSC_FILE_SEQ BIGINT,
MSC_SWITCHNAME VARCHAR(500),
RECORD_COUNT SMALLINT
)

and the command i am giving is
db2 "load CLIENT from /home/dsadm/Datastage/Log/MSC_FILE_Stats.txt of del insert into MSC_MERGE_FILE_TAB

But it is throwing one error SQL0180N The syntax of the string representation of a datetime value is incorrect. SQLSTATE=22007

My file is having data as follows : 2010063000.00.08
I want to insert data in this format into column MEDIATION_TIMESTAMP which if of datatype timestamp using load utility.
Please suggest a way to insert this data into the specified table without changing the timestamp data format.
Reply With Quote
  #2 (permalink)  
Old 07-01-10, 02:59
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
load CLIENT from /home/dsadm/Datastage/Log/MSC_FILE_Stats.txt of del
modified by timestampformat="YYYYMMDDHH.MM.SS"
insert into MSC_MERGE_FILE_TAB

LOAD
The Modifiers are shown at the bottom of the statement.
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