Hai I need to change derivations in Transformer stage from OR logic to IF then Else if ,for the following Logic help
If IsNull(Tocl1) Or Len(Tocol1) = 0 Then 'sample' Else To col1
Yours
Hello OR logic in transformer Stage
Moderators: chulett, rschirm, roy
Re: Hello OR logic in transformer Stage
if IsNull(Tocl1) Then 0 else if
Len(Tocol1) = 0 Then 0 else
col1
Thanks
Len(Tocol1) = 0 Then 0 else
col1
Thanks
sushanth wrote:Hai I need to change derivations in Transformer stage from OR logic to IF then Else if ,for the following Logic help
If IsNull(Tocl1) Or Len(Tocol1) = 0 Then 'sample' Else To col1
Yours
Hi Sushanth,
Just go ahead and change the derivation using the expression editor. If something is wrong it will appear in RED. Whatever logic you would like to apply just put it in the derivation using the expression editor. It should work.
HTH
--Rich
Pride comes before a fall
Humility comes before honour
Just go ahead and change the derivation using the expression editor. If something is wrong it will appear in RED. Whatever logic you would like to apply just put it in the derivation using the expression editor. It should work.
HTH
--Rich
Pride comes before a fall
Humility comes before honour
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Re: Hello OR logic in transformer Stage
Why do you need to change? The logic you have will work perfectly well.sushanth wrote:Hai I need to change derivations in Transformer stage from OR logic to IF then Else if ,for the following Logic help
If IsNull(Tocl1) Or Len(Tocol1) = 0 Then 'sample' Else Tocol1
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 3593
- Joined: Thu Jan 23, 2003 5:25 pm
- Location: Australia, Melbourne
- Contact:
What you have is the old Oracle NVL function, if a value is empty or null replace it with a given value, else leave it alone. Why not write your own routine to do this which is passed the field value and the replacement value. In a routine you can use the Test button to make sure your code works and then use it in all your jobs. When you want to change it you only need to change it in one place and you do not need to recompile any jobs.
Certus Solutions
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn