Delay a CA WA ESP job by nn seconds instead of nn minutes using the RELDELAY statement
search cancel

Delay a CA WA ESP job by nn seconds instead of nn minutes using the RELDELAY statement

book

Article ID: 42090

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

 

Summary: 

In some cases there needs to be a delay between the predecessor and successor job. The RELDELAY command only allows whole minute values. By using a SELF COMPLETING TASK it is possible to delay by seconds.

 

Background:  

The RELDELAY x command only allows whole minute values. 

Environment:  

CA Workload Automation ESP Edition r11.4

 

Instructions: 

The self completing task in the example below sets the start time for the following job.

JOB DELAYJOB TASK SELFCOMPLETING                                    
   RUN DAILY                                                        
   ESPNOMSG AJ DELAYED.JOB RESET DELAYSUB('REALNOW +                
   PLUS 20 SECONDS') APPL(%ESPAPPL..%ESPAPGEN)                      
   RELEASE ADD(DELAYED.JOB)                                         
ENDJOB                                                              
                                                                    
JOB DELAYED.JOB                                                     
  RUN DAILY

ENDJOB                                                       

 

Additional Information:

The RELDELAY statement is documented in the CA Workload Automation ESP Edition Command Reference Guide r11.4.

 

 

Environment

Release: ENCWLA00200-11.3-Workload Automation-Restart Option-EE
Component: