DateTime Metadata Mismatch Warnings

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

GloriaRR
Participant
Posts: 8
Joined: Mon Mar 29, 2004 10:49 am

Post by GloriaRR »

DSguru2B wrote:The issue remains with the metadata, rather than data itself. Both hold different scales which is causing the problem.


To go a littler farther, the issue is with the metadata dictated by the DataDirect driver used by DataStage.
-- The driver for SQL Server says a datetime has a length of 23 and a scale of 3 (e.g., 2007-02-02 08:05:01.000), which matches the data in SQL Server.
-- The driver for Informix says when a datetime is defined as year to fraction(x) (where x can be 1 to 5) it always maps it to fraction(5), even if the database really has the field defined as year to fraction(3). This always makes the length for Informix 25 and the scale 5 regardless of how the data is actually defined in the database.

So even though the underlying data really has the same length and scale, I can't use the same ODBC stage to load both databases, because the database driver forces different metadata.
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Then clearly you must demand that Microsoft and IBM get their act together so that you can!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

ray.wurlod wrote:Then clearly you must demand that Microsoft and IBM get their act together so that you can!

If only we were in wonderland [sigh]
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply