Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

repIace bIank with nuII

$
0
0

I am trying to load data from flat file, where ever there is empty replace with NULL.  Below is the function.

 

 

ifthenelse(trim_code(ALTR.ACCEPT_CODE) = '', NULL, trim_code(ALTR.ACCEPT_CODE))
------------------- trim_code custom function -------
return nvl(ltrim_blanks_ext(rtrim_blanks_ext($ToTrim)),'');
-----------------------------------------

 

Tried removing the custom function too, But still it is showing up as Blank.please advice.



ifthenelse( (ALTR.ACCEPT_CODE) = '', NULL, (ALTR.ACCEPT_CODE))

Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>