IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Load Date X(10) from flat file to DB2 table (DAte External)


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shivsingla
Warnings : 1

New User


Joined: 14 Jul 2006
Posts: 15
Location: New Delhi

PostPosted: Thu Jun 16, 2011 1:23 pm
Reply with quote

Hi,

How to load date which is X(10) in a flat file into DB2 table field which is Date external. Date is like 29.05.2011 in flat file. I am using Load utility to load.

Getting Data type mismatch.

Thanks in anticipation.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Jun 16, 2011 1:32 pm
Reply with quote

DB2 dates are ccyy-mm-dd. You are trying to insert dd.mm.ccyy.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jun 16, 2011 2:06 pm
Reply with quote

not knowing which utility your are using to load,
makes it really difficult to provide you with a solution.

suggest,
when you determine which utility you are using,
that you look at the manual and see if there are facilites within your load utility to cast.

if not, reformat the file (quick sort) or use a different utility.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top