06-06-2017 03:03 AM - edited 06-06-2017 08:22 PM
I can not find a place for SAS Data Intergration so I will leave my question here.
I have a target oracle table that contain null value for some columns. I want to replace the null value with a space ' ' in oracle so I thought BL_PRESERVE_BLANKS=YES option in the bulk load will insert a blank for the null value. But it doesn't and I want to know how to make it working.
so DI flow chart like: source SAS table (with blank for some columns)------>bulk load (BL_PRESERVE_BLANKS=YES)----->Target oracle table (still null value)
I found update transform in DI is working too but want to explore if BL_PRESERVE_BLANKS=YES option in bulk load gives you same result.
06-06-2017 04:29 AM
06-06-2017 08:50 AM
Bulk loading is for loading a source SAS table into a database table.
From what you write your source table is already in Oracle and you just want to replace NULL values for CHAR and VARCHAR2 with a single blank. That would be a SQL UPDATE.
If you're using pass-through SQL then you could use Oracle function NVL() or NVL2() for this task.
06-06-2017 07:29 PM
It was my mistake, the source table was stored as SAS table and loaded to oracle through bulk load with bl_preserve_blank=yes. but I can still see null value when I do select column1 from oracletable where column1 is null
Need further help from the community? Please ask a new question.