How to Execute A Job or Routine in a sequence if a job is stopped intentionally by user .
I hace a senario Like
Job a ------if ok ------ job b
if failed ----jobc
if stopped by the user --- jobd
can any one help me how to catch the stop request .present i am using the joba.$JobStatus=DSJS.STOPPED which is not executing the jobd when the job stopped by the user
Thanks in Advance
KK
How to Execute A Job or Routine in a sequence if ...
Moderators: chulett, rschirm, roy
What do you mean by 'stopped programatically' exactly? Either way should generate the same status, as far as I know.
And I was just trying to point out that you posted the status value with a 'dot' between the two words when it actually needs to be an 'underscore'. Did you make that change?
![Confused :?](./images/smilies/icon_confused.gif)
And I was just trying to point out that you posted the status value with a 'dot' between the two words when it actually needs to be an 'underscore'. Did you make that change?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Ok, nevermind. I was looking at the defines in the dsapi.h file where it is listed as DSJS_STOPPED. However, the trigger wants the dot in the middle or DSJS.STOPPED, so go ahead and change it back. Sorry about that.
You might still want to explain what you mean by 'stopped programatically' and if you see a different status in the Director when the job is stopped by different means. I was under the impression that both would be the same if the end result was 'Stopped', but this is not a situation I've ever tried to handle, the checking for a stopped job in a Sequence job.
![Embarassed :oops:](./images/smilies/icon_redface.gif)
You might still want to explain what you mean by 'stopped programatically' and if you see a different status in the Director when the job is stopped by different means. I was under the impression that both would be the same if the end result was 'Stopped', but this is not a situation I've ever tried to handle, the checking for a stopped job in a Sequence job.
-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:
dsapi.h is intended to be used in C and C++ programs, where the "." has another meaning entirely.
For BASIC routines, use JOBCONTROL.H as the preferred header file.
For BASIC routines, use JOBCONTROL.H as the preferred header file.
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.