meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 121 Location: India
|
|
|
|
I generally see in the beginning of Jobs/and Procs, such kind of restart files which are catlogoued and at the end deleted , please let me know why do we code it.
//**************************************************
//** PROTECT RESTART
//**************************************************
//STEP00 EXEC PGM=IEFBR14
//DDPRO1 DD DSN=&PROD..PROTECT.RESTART.MNDD660N,
// DISP=(,CATLG,DELETE),
// SPACE=(TRK,(1)),VOL=REF=(PROD.RSTART)
0 //*********************************************************************
1 //** DELETE RESTART **
2 //*********************************************************************
3 //STEP99 EXEC PGM=IEFBR14,COND=(4,LT)
4 //DDPRO1 DD DSN=&PROD..PROTECT.RESTART.MNDD660N,DISP=(MOD,DELETE)
Thanks |
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
This is a method to prevent a partially-completed job from being restarted from the first step. In that case, the dataset would already exist and the job would fail.
A successful restart requires step restarting near the point of the error. |
|