Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 02 Apr 2004 @ 05:46:53 GMT


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


Subj:   Re: Hexadecimal value for char-Mload error
 
From:   Mirjam Berger

Hello,

you are right not to use NULLIF in the layaout definition. But you can use a CASE statement when you use the data

> .FIELD  TT_STAT_TYP                  424
> DECIMAL(15,0)
>         NULLIF TT_STAT_TYP_IND       = '?';
> .FIELD  TT_STAT_TYP_IND              432  CHAR(01);


INSERT INTO ....
TT_STAT_TYP = CASE WHEN :TT_STAT_TYP_IND = '?'
                                        THEN NULL
                    ELSE :TT_STAT_TYP
              END

This will not have the terrible effects on CPU you try to prevent by not using NULLIF.

Hope this helps!


Thanks!

Mirjam



     
  <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