how to abort the job
Moderators: chulett, rschirm, roy
how to abort the job
Hi
Can anyone tell me that how can I abort the job.For one of my research work I am taking data in sequential file and it contains 100 records and my target is DRS.I want to make after 50 records my job should get abort.Please send me some problems by which I can abort my job.
It may looks silly for you guys but,please send it fast asap.
thanks
mohan
Can anyone tell me that how can I abort the job.For one of my research work I am taking data in sequential file and it contains 100 records and my target is DRS.I want to make after 50 records my job should get abort.Please send me some problems by which I can abort my job.
It may looks silly for you guys but,please send it fast asap.
thanks
mohan
There are several ways of doing it. Use Abort after n rows option available in Transformer. Or by counting the number of rows passing on a column, you can use AbortUlitility. Or Teminator stage in JobSequence(If you have in your version). You can search for this.
But Why do you need to abort the job. Rather you have change you design to send some notification and stop the further process.
But Why do you need to abort the job. Rather you have change you design to send some notification and stop the further process.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Can you clarify this.loveojha2 wrote:Explicit call to DSLogFatal would abort the job. You can use it within the stage variable.
I tried using DSLogFatal in my transformer stage before but it did not work. I know we can use this subroutine in Afterjob subroutine or transform function but not sure we can use it in stage variables.
When you mean abort .. you mean stopping the job right.. so what you can do is when you click the run button , there is a tab called LIMITS, there is an option called STOP STAGES AFTER and you can specify after how many rows you want to stop the job.balajisr wrote:Can you clarify this.loveojha2 wrote:Explicit call to DSLogFatal would abort the job. You can use it within the stage variable.
I tried using DSLogFatal in my transformer stage before but it did not work. I know we can use this subroutine in Afterjob subroutine or transform function but not sure we can use it in stage variables.
Works just fine. All you need to do is call it and your job is dead, so not sure under what circumstances it wouldn't work.balajisr wrote:I tried using DSLogFatal in my transformer stage before but it did not work. I know we can use this subroutine in Afterjob subroutine or transform function but not sure we can use it in stage variables.
![Confused :?](./images/smilies/icon_confused.gif)
And it would be simple enough to do that conditionally when @INROWNUM hits 50, if someone really wanted to do that.
-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:
Best practice is to design server jobs so that they never abort, so that you retain control at all times, in my opinion.
Etiquette Note
Terms like "fast" and "asap" create negative feelings here. This is an all volunteer site; folks post as and when they can. If you want "fast" or "asap" sign up for premium service from your support provider and learn the true cost of "urgent".
Etiquette Note
Terms like "fast" and "asap" create negative feelings here. This is an all volunteer site; folks post as and when they can. If you want "fast" or "asap" sign up for premium service from your support provider and learn the true cost of "urgent".
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.
When i tried to call DSLogFatal in the derivation of the transformer stage i got an error like 'Array DSLogFatal not dimensioned' which is same as one would get if the header files are missing when you call it from a routine.chulett wrote: Works just fine. All you need to do is call it and your job is dead, so not sure under what circumstances it wouldn't work.
And it would be simple enough to do that conditionally when @INROWNUM hits 50, if someone really wanted to do that.
You're right... I didn't mean you could use it directly in the derivation, but would need to wrapper it in a routine and include the appropriate headers. Should have explicitly mentioned that.balajisr wrote:When i tried to call DSLogFatal in the derivation of the transformer stage i got an error like 'Array DSLogFatal not dimensioned' which is same as one would get if the header files are missing when you call it from a routine.
-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:
Re: how to abort the job
The ol' power switch is singularly effective!mohanraj wrote:Can anyone tell me that how can I abort the job.
![Laughing :lol:](./images/smilies/icon_lol.gif)
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.