NULL Handling using Modify stage
Posted: Tue Jun 14, 2005 10:49 pm
Hi,
In one of my jobs, I'm using the Transformer for the NULL handling. The way I'm writing is:
If trim(***)="" then "" else ***- The input metadata is Nullable but the output not.
Now, I'm trying to do the same thing using modify stage with HANDLE_NULL(). If I make a statement like:
A=HANDLE_NULL(A,'B') or A=HANDLE_NULL(A) it works. But If I put something like:
A=HANDLE_NULL(A,'')- it doesn't work. How can I write something similar to above mentioned If Then else stat. so I'll be ble to replce NULL with '' or "".
In one of my jobs, I'm using the Transformer for the NULL handling. The way I'm writing is:
If trim(***)="" then "" else ***- The input metadata is Nullable but the output not.
Now, I'm trying to do the same thing using modify stage with HANDLE_NULL(). If I make a statement like:
A=HANDLE_NULL(A,'B') or A=HANDLE_NULL(A) it works. But If I put something like:
A=HANDLE_NULL(A,'')- it doesn't work. How can I write something similar to above mentioned If Then else stat. so I'll be ble to replce NULL with '' or "".