In most of the JCL, I usually observed that they have coded files like this -
Code: Select all
//**************************************************
//** RESTART FILE
//**************************************************
//STEP01 EXEC PGM=IEFBR14
//DDPRO1 DD DSN=&PROD..ESPN.RESTART.DD99N,
// DISP=(,CATLG,DELETE),
// SPACE=(TRK,(2)),VOL=REF=(PROD.RSTRT)
//*********************************************************************
//** DELETE RESTART FILE **
//*********************************************************************
//STEP99 EXEC PGM=IEFBR14,COND=(0,LT)
//DDPRO1 DD DSN=&PROD..ESPN.RESTART.DD99N, ,DISP=(MOD,DELETE)