Restarting ended-in-error operations managing cleanup action

About this task

To restart an operation that ended in error performing a cleanup action, enter the RC (restart and cleanup) row command beside that operation in the HANDLING OPERATIONS ENDED IN ERROR panel. The following panel is displayed:
Figure 1. EQQRCLSE - Operation restart and cleanup
 EQQRCLSE-------------- OPERATION RESTART AND CLEANUP ------------------------
 Option ===>                                                                
                                                                                
 Application           : PAYDAILY        00/12/13  20.36                        
 Operation             : CPUA 1                                                 
 Jobname and jobid     : PAYDAILY        JOB01475                               
 Expanded JCL          : N                                                      
                                                                                
                                                                                
 Clean Up Result       :                                                        
                                                                                
 Edit JCL              ===> N        Edit JCL before Restart (SR/JR only)   
                                                                                
                                                                                
 Select one of the following:                                                   
                                                                                
 1 STEP RESTART                          Request a Step Restart                 
 2 JOB RESTART                           Request a Job  Restart                 
 3 START CLEANUP                         Request Cleanup                        
 4 DISPLAY CLEANUP                       Display Cleanup result                 
                                                                                
                                                                                

From this panel you choose among the restart and cleanup functions. For step restart, see Restarting an operation from a certain step. Also, refer to Restart and cleanup for more information about setting cleanup options.

For job restart or step restart, perform the following steps:
  1. Select job restart or step restart for an operation. If cleanup is required, confirm that the cleanup type is other than none.
  2. For step restart only, the Step RESTART SELECTION panel is displayed. Enter the GO command, and the MODIFYING THE CLEANUP ACTION panel is displayed.
  3. In the MODIFYING THE CLEANUP ACTIONS panel, enter the GO command. If you specified Y (yes) for the Edit JCL option in the OPERATION RESTART AND CLEANUP panel, you can correct the JCL. The CONFIRM RESTART panel, shown in EQQMERTP - Confirm restart, is displayed.

The start cleanup options can be requested only for an operation with the cleanup type set to automatic, immediate, or manual. You can also issue a job restart or step restart to perform the cleanup together with the job run instead of separately before the run.

Figure 2. EQQMERTP - Confirm restart
EQQMERTP ---------------------- CONFIRM RESTART -------------------------------
                                                                                
Enter Y  in the command field to restart the operation.                        
The operation status will be set to Ready.                                     
Enter N  to reject the restart request.                                        
                                                                                
Application            : PAYDAILY                                              
Operation              : CPU1 20                                         
Input arrival          : 97/02/13 12.00                                        
                                                                               
Restart step              :                                                    
Expanded JCL will be used : N                                                  
                                                                               
                                                                               
Error code         ===> S806                                                   
User data          ===> ________________                                       
Reason for restart ===> __________________________________________________     
                        __________________________________________________     
                        __________________________________________________     
                        __________________________________________________     
                        __________________________________________________     
Command ===>                                                  Scroll ===> PAGE 

When you restart a job, you can give a reason, which is written to the track log for audit purposes.

When you confirm the restart, HCL Workload Automation for Z:
  1. Resets the operation status to ready.
  2. Initiates any cleanup actions.
  3. Resubmits the operation when all conditions are met.

If you cancel out of restart and cleanup, the statuses are reset to their original values.