Stored Procedure Date issue

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
anupam
Participant
Posts: 172
Joined: Fri Apr 04, 2003 10:51 pm
Location: India

Stored Procedure Date issue

Post by anupam »

Hi,

My job is executing one stored procedure (using stored procedure stage). this SP takes date as an input and date_out as an output. The procedure is running fine but the issue is that the output date is not correct.

For eg, Its giving 01-JAN-2000 as an output where as the output should be 01/01/1900. I have checked it in TOAD with the same parameter, there its showing the output as 01/01/1900 but when its comig out of datastage, its changing the year to 2000 instead or 1900.

Please suggest.
----------------
Rgds,
Anupam
----------------
The future is not something we enter. The future is something we create.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

My guess is that you are not supplying a full 4 digit year in the returned value, and DataStage is using the setting of $APT_DATE_CENTURY_BREAK_YEAR to interpret that date as 2000 instead of 1900.
Post Reply