DB2 Date error

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
kpsita
Participant
Posts: 99
Joined: Tue Jul 21, 2009 11:43 pm

DB2 Date error

Post by kpsita »

Hi,

I have a simple sql used in a DB2 enterprise stage. When I view data I am geting proper values for couple of date field. But when the same job accessing the same table in a different environment gives some default values like '1901-01-01' for those two date fields.The datatype is date for these fields.

Is it something related to environmental settings.

Thanks,
KPSITA
DaleK
Premium Member
Premium Member
Posts: 68
Joined: Fri Jun 27, 2003 8:33 am
Location: Orlando

Re: DB2 Date error

Post by DaleK »

kpsita wrote:... same table in a different environment gives some default values like '1901-01-01' for those two date fields.....
Have you querried the table from another tool to verify that those dates aren't really 1901-01-01 in the table in the 2nd environment? My first guess is a DB2 default value for a not nullable field.

Dale
kiran0435
Participant
Posts: 39
Joined: Sun Sep 26, 2010 10:28 pm

Post by kiran0435 »

I faced the issue when running a particular job in new environment.

It is null values that will be replaced by 1901-01-01. Then some patch was installed by Infrastructure support team which solved the problem.
Post Reply