Fail job while using Join stage

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
mobans
Participant
Posts: 5
Joined: Wed Apr 29, 2015 2:47 pm
Location: Kolkata

Fail job while using Join stage

Post by mobans »

How to fail job if there is no match on the key using Join stage?

Note: Due to high volume of data I can't use Lookup stage.
wuruima
Participant
Posts: 65
Joined: Mon Nov 04, 2013 10:15 pm

Re: Fail job while using Join stage

Post by wuruima »

I think the "abort after rows" in transfomer could help. you may try.
wuruimao
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Post by Teej »

Use a generic stage, and use the abort operator.

Define $APT_ORCHHOME, $APT_CONFIG_FILE, source DSEngine\dsenv, and include $APT_ORCHHOME/bin in your PATH, and do the following command:

osh -fullusage abort

-T.J.
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Re: Fail job while using Join stage

Post by SURA »

mobans wrote:How to fail job if there is no match on the key using Join stage?
Only if 100% no match ? or ...
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I'd add a transform after the join stage and check for a null lookup column value there. If all columns joined are nullable then you have to add a new, dummy column in the lookup data which doesn't contain nulls.
Post Reply