Backout datasets after JOB completed successfully thru Encore

book

Article ID: 222727

calendar_today

Updated On:

Products

CA Workload Automation ESP Edition

Issue/Introduction

We need to backout the datasets created by one JOB after it completed successfully.

Environment

Release : 11.4 & 12.0

Component : Workload Automation Restart Option

Resolution

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)                           
TYPE BACKOUT                                              
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
=================================
                                                                 
=================                
PARAMETER SUMMARY                
=================                
                                 
        TYPE:     BACKOUT        
        MODE:     NORMAL         
        SUBSYS:   X120           
        ESPGROUP: X120GRP        
                                 
        JOBID:    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.