hello,
i have about 25 steps in my jcl, in the 4th step i have created a temporary data set and passed it to subsequent steps(5th,6th,9th and so on).
while accesing it in the 7th step an ABEND occurs and the job terminates abnormally.
now i want my jcl to RESTART from step 7th itself.
how would i do that.
thanx in advance
Software/Hardware used:
ASKED:
July 10, 2006 7:18 AM
UPDATED:
July 12, 2006 8:03 AM
An alternative is to create the dataset as a permanent (cataloged) dataset, then delete it after the job steps that use it have completed successfully.
Note: In practice, it is a good idea to add two job steps, one at the beginning of the job to delete the dataset if it was left over from a previous failed job and one at the end of the job to delete the dataset on success of previous job steps.
thanx for your invaluable suggetions but still i would like to know to if thez any altenative method, provided that i am not using any job schedulers(CA7 or CA11).
No I’m afraid there is not an alternative.
You will have to restart your job from the step that creates the TEMP dataset.
If your job is a long running job, TEMP datasets are not advisable for this very reason. Best to alter your JCL to write your dataset out. That way if it fails again you will be able to restart it from the failing step.
Hope this helps.
How about trying the RESTART= command in the job card?
And as stated by another poster you must use use a cataloged dataset.