Page 1 of 1

Null handling

Posted: Tue Mar 15, 2005 7:35 pm
by benny.lbs
Thanks for reading !

It is still a null handling question, my case as below.

Input : FieldA, FieldB
Output: FieldC

In transformer stage, derivation within FieldC

If IsNotNull(FieldA) Then
FieldA
Else
FieldB

As I know, there is handle_null() function within Modify stage.

FieldC = handle_null(FieldA, value)

here, it is only support value ? Can not be a field from input link ?

If yes, any other stage except transformer can fulfill my requirement.

Posted: Wed Mar 16, 2005 7:07 am
by roy
Hi,
why not test it your self?

Re: Null handling

Posted: Wed Mar 16, 2005 8:03 am
by naren6876
why dont u test like this
If Not(IsNull(FieldA)) Then
FieldA
Else
FieldB
[/quote]

Posted: Fri Mar 25, 2005 1:30 pm
by gh_amitava
Benny,

Are you sure a Null is there or Space ? For both of them you can use the following code,

If (IsNull(X) = 1 Or Trim(X) = "") Then <Action1> Else <Action2>

To check whether Null is coming or not you can use a Peek stage .

Regards
~Amitava