We need to backout the datasets created by one JOB after it completed successfully.
Release : 11.4 & 12.0
Component : Workload Automation Restart Option
Following JCL can be used to do the BACKOUT run for a successfully completed JOB:
//[email protected] EXEC PGM=CYBRM000,PARM='FORCE YES'
//STEPLIB DD DISP=SHR,DSN=prefix.CD7YLOAD
//SYSIN DD DDNAME=ENCPARMS
//SYSPRINT DD SYSOUT=*
//ENCPARMS DD *
SUBSYS subsys ESPGROUP(espgroup)
JOBNAME TEST /*TEST is the JOB name*/
JOBID JOB21386 /* this is the JES no*/
Note: please replace prefix, subsys, espgroup with proper values.
Following shown in the job output:
THIS IS A BACKOUT OF JOB JOB21386
ACTIONS TO BE TAKEN BY ESP ENCORE
1. BACKING OUT ZHALI13.TESTGDG.G0004V00 FROM WRKD09.
(IT HAD BEEN CREATED BY STEP 2 'STEP02'.)
2. BACKING OUT ZHALI13.TRACE1 FROM WRKD23.
(IT HAD BEEN CREATED BY STEP 3 'STEP03'.)
The above two files created by the JOB were deleted after the BACKOUT run. Warning, After the job has been backed out. The status of the job in CSF may become FAILED.