Timestamps

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
curtcopp
Participant
Posts: 3
Joined: Wed Oct 27, 2004 2:35 pm

Timestamps

Post by curtcopp »

I am selecting a field that is a timestamp from a SQL Server database, where ever the milliseconds start with 0 DataStage is dropping the 0's, for example, my timestamp in my source DB is 2005-04-09 08:32:48.050 but when I select in datastage it is returning 2005-04-09 08:32:48.500. I have tired to convert and cast the data in my select statement but nothing seems to work. Needless to say I am new to DataStage and would appreciate any suggestions.
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard! :D

Are you using an ODBC stage to connect to SQL Server?
Is it in View Data that these strange permutations of milliseconds are occurring?
What happens if you create a job that selects from SQL Server and writes to a text file? What goes into the text file?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
curtcopp
Participant
Posts: 3
Joined: Wed Oct 27, 2004 2:35 pm

Post by curtcopp »

Thanks Ray - I am using a Dynamic RDBMS stage to connect to the SQL Server. These millisecond permutations occur in view data, and also in a text file.
Post Reply