reject link creates a file

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
uzl
Premium Member
Premium Member
Posts: 20
Joined: Mon Jul 23, 2012 4:33 am

reject link creates a file

Post by uzl »

I'm implementing jobs that check datainconsistenties between tables. For example : I check if all instanties of a column in one table also exist in another table. I use a lookup-stage for this. The reject link creates a file with all the inconsistenties. However, when no record is rejected, an (empthy) file is created. How can I avoid this ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can't.
-craig

"You can never have too many knives" -- Logan Nine Fingers
uzl
Premium Member
Premium Member
Posts: 20
Joined: Mon Jul 23, 2012 4:33 am

Post by uzl »

not the answer I was hoping for but thanks anyhow
prasannakumarkk
Participant
Posts: 117
Joined: Wed Feb 06, 2013 9:24 am
Location: Chennai,TN, India

Post by prasannakumarkk »

delete empty files in after job subroutines.
Thanks,
Prasanna
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Was thinking about my answer and realized it was a little... terse. So for grins, here's the longer explanation:

When a job starts, all target stages are opened / initialized. It is at that time that they do whatever they need to do to "get ready". A database stage connects to the database, a file stage creates the file if it doesn't already exist, etc etc. None of those things are conditional, meaning they don't wait for the first row to arrive before they happen.

As noted, if that really bothers you the file can be checked "after job" and deleted if found to be empty.
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasannakumarkk
Participant
Posts: 117
Joined: Wed Feb 06, 2013 9:24 am
Location: Chennai,TN, India

Post by prasannakumarkk »

thanks craig for the information. I always wondered why it happened.
Thanks,
Prasanna
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Discover such instances using cross-able analysis in Information Analyzer.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply