Archives of the TeradataForum
Message Posted: Wed, 28 Mar 2007 @ 10:25:14 GMT
Subj: | | Re: Error when loading NULL's in DATE field using |
|
From: | | Michael Larkins |
Hello Srikant:
As mentioned in this forum many times (could be found in the archives) there is no such thing as a null in a flat file. You need to look at
the file and see if the unload is placing a zero or some other value for a date. When Teradata sees a zero and tries to convert it to a date -
you get a bad date (no date of zero).
You need to use the NULLIF when you write the DEFINE in Fastload (look in Fastload reference manual for syntax). So when it sees the zero or
value exported by the unload, it will convert it to a null for you.
Hope this helps,
Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor
|