"How to abort DS job when the condition in Transformer stage is not met".
When I execute the job I want to pass in a number parameter ie. 100 and then to check if that number matches with the input file count in the job. If it does, I want the job to continue otherwise to abort?
How to abort job with the condition in the Transformer
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 15
- Joined: Thu Aug 07, 2008 2:56 am
How to abort job with the condition in the Transformer
Karthik
Make It Work Make It Right Make It Fast
Make It Work Make It Right Make It Fast
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Don't do it in the Transformer stage. Do it in a before-job subroutine (after all you only need to check once). Set ErrorCode to a non-zero value to abort the job. Or handle it in a sequence before even running the job, as suggested.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.