Catch a null in file & put spaces

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
jayantthakore
Participant
Posts: 42
Joined: Tue Jan 18, 2005 5:48 am

Catch a null in file & put spaces

Post by jayantthakore »

Hii guys,
I am doing a lookup & replacing the new value on the key value(say column A) after the lookup..
If lookup fail it will insert NULL value in the place of column A....
There is a transformer after the lookup which has constraint
IsNull(column A) .
I want to catch those values which fail the lookup without having the reject link ....It should be caught in the transformer by the above constaint..
Can anyone help......??
Sunshine2323
Charter Member
Charter Member
Posts: 130
Joined: Mon Sep 06, 2004 3:05 am
Location: Dubai,UAE

Post by Sunshine2323 »

Hi,

In the LookUp set the property If Not Found - Continue

Then in the transformer you can check for the value of column A in the derivation as

If IsNull(lnkLookUp.ColumnA) Then " " Else lnkLookUp.ColumnA

Hope this helps.
Warm Regards,
Amruta Bandekar

<b>If A equals success, then the formula is: A = X + Y + Z, X is work. Y is play. Z is keep your mouth shut. </b>
--Albert Einstein
RobertScarbrough
Participant
Posts: 24
Joined: Fri Oct 01, 2004 1:43 pm
Location: USA

Post by RobertScarbrough »

Another method is shown below:

Code: Select all

NullToEmpty(lnkLookUp.ColumnA)
Post Reply