Backout datasets after JOB completed successfully through Encore
search cancel

Backout datasets after JOB completed successfully through Encore

book

Article ID: 222727

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

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

Environment

Release : All Releases

Component : ESP Workload Automation Restart Option EE

Resolution

The following JCL can be used to do the BACKOUT run for a successfully completed JOB:


//$$$$$$@   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:  replace prefix, subsys, espgroup with the proper values.

The following is shown in the job output:


=================================
THIS IS A BACKOUT OF JOB JOB21386
=================================
                                                                 
=================                
PARAMETER SUMMARY                
=================                
                                 
        TYPE:     BACKOUT        
        MODE:     NORMAL         
      SUBSYS:   ESPM          
      ESPGROUP: ESPGRP      
                                 
        JOBID:    JOB21386       
......
=================================                              
ACTIONS TO BE TAKEN BY ESP ENCORE                              
=================================                              
                                                               
      1.  BACKING OUT MY.TESTGDG.G0004V00 FROM WRKD00.
            (IT HAD BEEN CREATED BY STEP 2 'STEP02'.)          
                                                               
      2.  BACKING OUT MY.TRACE1 FROM WRKD00.          
            (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.