Error Inserting DATETIME field

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Rubu
Premium Member
Premium Member
Posts: 82
Joined: Sun Feb 27, 2005 9:09 pm
Location: Bangalore

Error Inserting DATETIME field

Post by Rubu »

Hi

I am encountering erron while trying to insert DATETIME YEAR TO FRACTION(3) field. DataStage takes the field as TimeStamp (25) while reading , but failed to insert the same column while I tried inserting it to exactly same data type field.
I encountered the same problem in Server Job for Data Type DATETIME HOUR TO MINUTE!

The error displayed is
Dynamic_RDBMS_15: [Informix][Informix ODBC Driver][Informix]Non-numeric character in datetime or interval.


I tried to use CAST statement in user defined query without any success.

Any suggestion.

Regards
Rubu
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
DATETIME hour to minute has hh:mm format so you'll probably have to substring your data type since no DS type is compatible.
year to fraction could have a similar issue since timestamp (AFAIK) is not including a fraction part.

Unfotunatly I don't have Informix available to give you real solutions :(

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
dsxuserrio
Participant
Posts: 82
Joined: Thu Dec 02, 2004 10:27 pm
Location: INDIA

Post by dsxuserrio »

Hi
Can you try this format and check if it works
{ts 'YYYY-MM-DD hh:mm:ss:mmm'
dsxuserrio

Kannan.N
Bangalore,INDIA
mujeebur
Participant
Posts: 46
Joined: Sun Mar 06, 2005 3:02 pm
Location: Philly,USA

Post by mujeebur »

Hi, I suspect this is to be:

ts 'YYYY-MM-DD hh:mi:ss:mmm'
Post Reply