When any job abends, the first thing we need to do is identify the reason for the failure of the job.Once the reason is found then you need to see whether any data correction/data deletion to be done.Some times you may have to do program change to correct the failure.
Once after correcting the problematic data or issue one has to decide from where the job need to restart.
Options for restarting jobs.
- Restart from the same abended step
- Restart form any earlier step
- Restart form top
- Bypass the abended step and continue from next step
- Mark the job as completed.
1.If there is no dependency with earlier steps then the abended job can be restarted from the same step.
2.If any temporary data sets are used in the abended step,then we will have to find from where they are getting created in the job.If that file is created two steps earlier then you may have to restart the job from that step where the temporary data set is getting created. We should refer restart instruction before restarting the job.
If the abended step uses an input file which gets created in earlier steps and if that data in the file creates a problem,then you either need to correct the data or correct the program to create a new file with proper data.If only data correction to the file is needed then you can restart from the abended step itself.
But if the program to be changed,then the job to be restarted from the step where the program is used.
3.When it is decided to run from some earlier steps,then it might give file issues due to output files being created in earlier run(during the run when the job failed). In that case if there is no further impact the job can be rerun from TOP (generally file deletion will be the initial step).
4.In some cases the abended step can be ignored and the job can be restarted from next step.
If the abended step has a program which gets data only from tables and if any issue,then that can be checked in the next run as well as the same data will be picked till that gets processed.
Before the next run of the job,the problematic data can be corrected so that there won’t be any issue.
5.If the abended job doesn’t do any important processing or not a mandatory job to be run then the entire job can be marked as complete so that next job in the stream can start running.
Note: Refer to restart instruction specified in the JCLMSG before restarting the job.
Comments
Post a Comment