Unix Script for restartability
Moderators: chulett, rschirm, roy
Unix Script for restartability
Hi,
I have a sequence which has 5 job activity stages.
I need to run the sequence using unix script.
I am not using checkpoints in sequence.
i want to handle the restartability in unix scripts.
Any suggestions welcome.
Thanks.
I have a sequence which has 5 job activity stages.
I need to run the sequence using unix script.
I am not using checkpoints in sequence.
i want to handle the restartability in unix scripts.
Any suggestions welcome.
Thanks.
pandeeswaran
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Yes. I agree that the job needs to be reset before the run.
But the script is going to trigger the main sequence.
so, i believe there is no need of resetting the sequence.
if we reset the job sequence, it will start the first job in stead of the aborted job.
Please correct me ,if i am wrong.
Thanks
But the script is going to trigger the main sequence.
so, i believe there is no need of resetting the sequence.
if we reset the job sequence, it will start the first job in stead of the aborted job.
Please correct me ,if i am wrong.
Thanks
pandeeswaran
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
If you're not using checkpoints then the job (sequence) status will never be "restartable". Therefore if it aborts, it will need to be reset. But a top-level sequence should be written so that it never aborts.
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.
Re: Unix Script for restartability
What happened to this part? (emphasis mine)pandeesh wrote:I am not using checkpoints in sequence.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Ok fine.Due to lack of checkpoints,the sequence needs to be reset.
But how DSJOB will track the aborted job in the sequence and start running from there?
If the sequence is reset, then it will start a fresh run.
But i want to start from where it aborts in the last run.
At the same time, there should not be any checkpoints in sequence.
Thanks
But how DSJOB will track the aborted job in the sequence and start running from there?
If the sequence is reset, then it will start a fresh run.
But i want to start from where it aborts in the last run.
At the same time, there should not be any checkpoints in sequence.
Thanks
pandeeswaran
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
It won't. You need checkpoints for that.
Or you can create the same logic in your sequence. Before every activity check whether (a) the sequence failed to finish successfully and (b) whether that activity finished successfully and, based on those results, make the decision whether to invoke the activity.
Why bother? Enable checkpoints.
Or you can create the same logic in your sequence. Before every activity check whether (a) the sequence failed to finish successfully and (b) whether that activity finished successfully and, based on those results, make the decision whether to invoke the activity.
Why bother? Enable checkpoints.
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.
Those are mutually exclusive requirements, unless for some reason you want to play the "roll your own" game. As noted, why bother? Enable checkpoints.pandeesh wrote:i want to start from where it aborts in the last run.
At the same time, there should not be any checkpoints in sequence.
Be curious to hear your counter-point, why the "should not be any" requirement is on the table.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
The simplest way is adding checkpoints in sequence and using sahib without -mode reset switch .
But I am curious ,whether we can implement the restart ability in unix script without using checkpoints.
But it's pretty clear that implementing a generic script is complex.
But if we know the number and types of stages in sequence ,
Then we can implement job sequence specific script in our own way.
I will try Jon sequence specific script and let you know.
Thanks
But I am curious ,whether we can implement the restart ability in unix script without using checkpoints.
But it's pretty clear that implementing a generic script is complex.
But if we know the number and types of stages in sequence ,
Then we can implement job sequence specific script in our own way.
I will try Jon sequence specific script and let you know.
Thanks
pandeeswaran
The above is not clear.pandeesh wrote:But if we know the number and types of stages in sequence ,
Then we can implement job sequence specific script in our own way.
Can you please explain?
OK, a little good natured tease but honestly - I have no idea what a "job sequence specific script" could possibly be. How do you imagine you can change where a sequence job without checkpoints restarts from outside of it using a shell script?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
I got your point Craig.
What i meant was creating a shell script as an alternative to sequence,
Actually the script is not going to trigger the sequence but the individual jobs which called in the sequence,
In this case there's no need of job sequence.
Whatever we are going to implement in sequence, we will do that in script level .
I will try this script.
Thanks
What i meant was creating a shell script as an alternative to sequence,
Actually the script is not going to trigger the sequence but the individual jobs which called in the sequence,
In this case there's no need of job sequence.
Whatever we are going to implement in sequence, we will do that in script level .
I will try this script.
Thanks
Last edited by pandeesh on Thu Nov 03, 2011 11:20 pm, edited 1 time in total.
pandeeswaran