Error reading date '1800-01-01'

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
arjun_004
Participant
Posts: 12
Joined: Wed Feb 07, 2007 2:10 am
Location: Mumbai
Contact:

Error reading date '1800-01-01'

Post by arjun_004 »

Hi,
We are facing problems reading date fields with value '1800-01-01'. The database is Teradata and the stage being used is Enterprise stage. It has no issues for all dates starting with century 1900 onwards. Is there a way to ensure the Enterprise stage can read such fields?
Thanks.
Thanks & Regards
Arjun Kumar
baglasumit21
Participant
Posts: 132
Joined: Wed Mar 01, 2006 11:12 pm
Location: Pune

Re: Error reading date '1800-01-01'

Post by baglasumit21 »

arjun_004 wrote:Hi,
We are facing problems reading date fields with value '1800-01-01'. The database is Teradata and the stage being used is Enterprise stage. It has no issues for all dates starting with century 1900 onwards. Is there a way to ensure the Enterprise stage can read such fields?
Thanks.
As per my knowledge datastage has dates starting from 1900-01-01. so probably it wont read your date.
SMB
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

IsValid("Date",'1800-01-01') is a valid date in datastage. Tho IsValid("Date",'0000-01-01') is not.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

All valid dates are valid in DataStage. (baglasumit21's understanding is not correct.)

There is no year 0 - the day before 1 Jan 0001AD was 31 Dec 0001BC.

Check your century rules in the interface with Teradata. The restriction might be being imposed there.
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