Job Status Message
Posted: Wed May 11, 2011 5:44 am
Hi,
I had ticked the check box "Add check points so that the job is restartable" in a sequencer Job properties. So the Job is able to restart from the point where it got aborted.
here we have a generic script for running datastage job. After running the datastage job, we are capturing the status and resetting the job if it is aborted.
The problem came when we have a restartable sequencer, where we need to start from the restart point, instead of starting from the beginning. so i need to differentiate the status "Aborted/Restartable", from the status "Aborted", so that i can apply reset strategy in second case.
i tried using job status, but it is giving 3 only in both the cases.
can anybody help me in differentiating above two job status messages, so that when the job is in "Aborted/Restartable" state, i will leave it as such, so that it can start from restart point. If the jobs is in "Aborted" state, i will reset it.
Thanks
Bharath.
I had ticked the check box "Add check points so that the job is restartable" in a sequencer Job properties. So the Job is able to restart from the point where it got aborted.
here we have a generic script for running datastage job. After running the datastage job, we are capturing the status and resetting the job if it is aborted.
The problem came when we have a restartable sequencer, where we need to start from the restart point, instead of starting from the beginning. so i need to differentiate the status "Aborted/Restartable", from the status "Aborted", so that i can apply reset strategy in second case.
i tried using job status, but it is giving 3 only in both the cases.
can anybody help me in differentiating above two job status messages, so that when the job is in "Aborted/Restartable" state, i will leave it as such, so that it can start from restart point. If the jobs is in "Aborted" state, i will reset it.
Thanks
Bharath.