Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Load Date X(10) from flat file to DB2 table (DAte External)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Load Date X(10) from flat file to DB2 table (DAte External)
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: 2001
Location: UK

PostPosted: Thu Jun 16, 2011 1:32 pm    Post subject:
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: 6970
Location: porcelain throne

PostPosted: Thu Jun 16, 2011 2:06 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us