date error

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
dstage443
Participant
Posts: 10
Joined: Wed May 28, 2008 4:02 pm

date error

Post by dstage443 »

i am trying to load a csv file into a table ...

[DataStage][SQL Client][ODBC][Oracle][ODBC]Datetime field overflow.

i am getting the following error .... the date field is in M/DD/YYYY FORMAT AND the date format for oracle database is DD-MON-YY

... im just starting my first task in datastage so any help wuld be appreciated
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard.

ODBC protocols require dates to be in YYYY-MM-DD format (according to the ISO 8601 standard). This requirement overrides the Oracle date picture and the actual format of your date.

Change your date format, for example using

Code: Select all

Oconv(Iconv(InLink.MyDate, "DMDY"), "D-YMD[4,2,2]")
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply