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.
Error reading date '1800-01-01'
Moderators: chulett, rschirm, roy
Error reading date '1800-01-01'
Thanks & Regards
Arjun Kumar
Arjun Kumar
-
- Participant
- Posts: 132
- Joined: Wed Mar 01, 2006 11:12 pm
- Location: Pune
Re: Error reading date '1800-01-01'
As per my knowledge datastage has dates starting from 1900-01-01. so probably it wont read your date.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.
SMB
-
- Participant
- Posts: 612
- Joined: Thu May 03, 2007 4:59 am
- Location: Melbourne
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>
<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>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.