How to abort a job
Moderators: chulett, rschirm, roy
How to abort a job
Hi
i am executing one batfile if the batfile failed i need to abort my job i am able get the status of that batfile "F" or "P". i want to abort my job if it is "F"
Help me, Thanks in Advance
Vijay
i am executing one batfile if the batfile failed i need to abort my job i am able get the status of that batfile "F" or "P". i want to abort my job if it is "F"
Help me, Thanks in Advance
Vijay
Vijay
Again - where exactly are you calling this batch file? And if you want to abort based on a stage variable, you can do that in another one. For example, something like this
Or something similar.
Code: Select all
svBatCheck: If svBatStatus = 'F' then DSLogFatal('Kaboom') Else svBatCheck
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
So, inside the job once for every record processed? Regardless...
You could 'abort the job' from inside your routine if you liked, or take the code sample I posted and run with it. In either case, abort by writing a Fatal log message.
You could 'abort the job' from inside your routine if you liked, or take the code sample I posted and run with it. In either case, abort by writing a Fatal log message.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Let me get this right in my head. For every row processed you are:
Doubtless you'll be back soon seeking ways to improve the performance.
- deriving a stage variable
invoking a routine
invoking a DOS shell
executing a BAT file
recovering its exit status
making a decision about aborting based on a constraint expression [Reject]
Doubtless you'll be back soon seeking ways to improve the performance.
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.