Reading a dat file and loading into oracle table

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
daramanoj
Participant
Posts: 20
Joined: Wed Jul 29, 2009 4:01 am

Reading a dat file and loading into oracle table

Post by daramanoj »

Hi ,

I am reading data from a .dat file which have 3 columns and 1 row in which the data is like this

''ABCD,20/03/2010,hghui3hgk3o3io''

so my job is to load this into oracle table ,while doing this the date column is not getting inserted properly it shows like "20/01/2028 08:00:00.000000"
datatype is date for this column

so please can anyone suggest me on this problem.

Thanks in advance
Thanks ,

Manoj
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Oracle is ... different.

You must ensure that the date you provide to Oracle matches the default date picture Oracle uses (or override that with appropriate functions).

Oracle DATE data type always includes a time component. Therefore a query against the table is likely to return the time component as well, unless you specify otherwise with an appropriate function such as TO_CHAR.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
daramanoj
Participant
Posts: 20
Joined: Wed Jul 29, 2009 4:01 am

Post by daramanoj »

oh Thanks

i have changed the input date format its working.
:D
Thanks ,

Manoj
Post Reply