Wondering if anyone has any suggestions for getting a job to generate a warning if there are no rows returned from the source. Ideally I don't want to do this from a controlling job, but within the job at runtime?
I have tried a constraint on INROWNUM but the job seems to complete succesfully by default.
Trigger a Warning To Log if Data Source returns no rows
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 2
- Joined: Fri Jul 30, 2004 2:30 am
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Charter Member
- Posts: 199
- Joined: Tue Jan 18, 2005 2:50 am
- Location: India
Code: Select all
Wondering if anyone has any suggestions for getting a job to generate a warning if there are no rows returned from the source. Ideally I don't want to do this from a controlling job, but within the job at runtime?
I have tried a constraint on INROWNUM [color=red]but the job seems to complete succesfully by default[/color].
If my uderstanding is correct, then in the same job its not possible, you will have to have a job control
OR
Write a before job routine, check for size of the source file, if its 0byte then ABORT, logging message in the log file 'Source is empty'
OR
Write a before job routine, check for size of the source file, if its 0byte then log a warning message in the Director log and let the process move forward, without doing anything.
Shantanu Choudhary
-
- Participant
- Posts: 2
- Joined: Fri Jul 30, 2004 2:30 am