reject link creates a file
Moderators: chulett, rschirm, roy
reject link creates a file
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 ?
-
- Participant
- Posts: 117
- Joined: Wed Feb 06, 2013 9:24 am
- Location: Chennai,TN, India
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.
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
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 117
- Joined: Wed Feb 06, 2013 9:24 am
- Location: Chennai,TN, India
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: