Default type of record in lookup fail

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
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Default type of record in lookup fail

Post by prasson_ibm »

Hi,

I have source date as ID(Integer) nullable=No

I am doing lookup with reference column ID(Integer) and passing WEFF_DT(Timestamp,Microsecond) Nullable=No with lookup condition =Continue

For unmatched ID i am getting null in WEFF_DT which i need to handle.

I am applying below null handing in transformer:-

Code: Select all

if (isnull(EEFF_DT) or trim(WEFFDT)='') then '1999-12-31 00:00:00.0000000' else WEFFDT
But all records are getting dropped after transformer.

Please help me with null handling.

Thanks in advance.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Try this:

Code: Select all

If Trim(NullToEmpty(WEFFDT))='' Then ...
Choose a job you love, and you will never have to work a day in your life. - Confucius
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Re: Default type of record in lookup fail

Post by kandyshandy »

prasson_ibm wrote:

Code: Select all

if (isnull(EEFF_DT) or trim(WEFFDT)='') then '1999-12-31 00:00:00.0000000' else WEFFDT
Did not this expression throw any error at the first place? At one spot EEFF_DT and WEFFDT at the other...
Kandy
_________________
Try and Try again…You will succeed atlast!!
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Re: Default type of record in lookup fail

Post by prasson_ibm »

kandyshandy wrote:
prasson_ibm wrote:

Code: Select all

if (isnull(EEFF_DT) or trim(WEFFDT)='') then '1999-12-31 00:00:00.0000000' else WEFFDT
Did not this expression throw any error at the first place? At one spot EEFF_DT and WEFFDT at the other...

Sorry there was a typo in the code.
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Post by kandyshandy »

So the problem is resolved?
Kandy
_________________
Try and Try again…You will succeed atlast!!
Post Reply