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 dateformat isn't working!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-22-05, 14:15
debbiey debbiey is offline
Registered User
 
Join Date: Feb 2005
Posts: 2
DB2 dateformat isn't working!

I'm trying to load from a csv file to DB2 and one of the columns is a date. The date values are in the format MM/DD/YYYY.

The code is:
LOAD FROM "C:\file.csv" OF del MODIFIED BY usedefaults MESSAGES "C:\load_log.txt" INSERT INTO xTable

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

Then I tried the dateformat modifier but the exact same error occurs!
LOAD FROM "C:\file.csv" OF del MODIFIED BY dateformat="MM/DD/YYYY" usedefaults MESSAGES "C:\load_log.txt" INSERT INTO xTable

Help!!
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