Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 28 Mar 2007 @ 10:25:14 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


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



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023