0", so you will have to clean up the input before running TPump." />
 
Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 30 Aug 2002 @ 13:30:47 GMT


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


Subj:   Re: NULLIF problem in TPUMP
 
From:   Geoffrey Rommel

  I have to load NULL into a date field if the input has '?'. The code is  


  .FIELD SALES_TRANS_DT * CHAR (08) NULLIF SALES_TRANS_DT = '?';  


  Note that the input is a text field of length 8 bytes. If the input field has ? in the first byte, the TPUMP works. If the ? is in any other position other than the first byte, TPUMP writes the error log with the message "Invalid date supplied for TEST11.SALES_TRANS_DT."  



That's what I would expect. Since the field is character, comparing it to '?' is equivalent to comparing it to '? '.

You probably can't say "nullif position('?' in sales_trans_dt) > 0", so you will have to clean up the input before running TPump.



     
  <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: 27 Dec 2016