BC Dates

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
tkozlows
Premium Member
Premium Member
Posts: 13
Joined: Tue Dec 03, 2002 7:31 pm
Location: Melbourne, Australia

BC Dates

Post by tkozlows »

Hi,

We are trying to read records from an Oracle database that contain dates with negative years (as in BC) using Oracle connector. We get the following run time error:

Source_Table,0: Can not convert to framework type timestamp (CC_PXAccessor::setCalendar, file CC_PXAccessor.cpp, line 4,409)

Is there a setting in DataStage that we need to configure to allow negative dates to be processed correctly?

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

Post by ray.wurlod »

If you're prepared to use a BASIC Transformer stage or server job, date handling there can handle BC dates correctly out-of-the-box.

I'm not aware of any environment variable that allows negative years to be handled in parallel jobs. Perhaps you could extract the date components (year, month, day) separately, or change the date picture in Oracle's TO_CHAR function so that it produced 55BC rather than -55.
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