ESP ADHOC command not working intermittently
search cancel

ESP ADHOC command not working intermittently

book

Article ID: 384660

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

In ESP Proc, the TASK below is used to select JOBB when JOBA meets the criteria:
JOB GOOD TASK SELFCOMPLETING
  RUN DAILY
  AFTER JOBA COND(STEPRC('stepname',0))
  ESPNOMSG ADHOC APPL(xxxx.0) ADHLIST(JOBB)
ENDJOB

However the ADHOC command sometimes doesn't work, and JOBB is not selected.

Environment

Component: ESP Workload Automation
Release: ALL

Cause

This is a timing issue. The TASK completion will wait for the ADHOC command being queued to ESP, won't wait for the command being executed.

Therefore the related ESP application may have been completed BEFORE the ADHOC command execution.

Resolution

Solution:
#1 Add the APPLEND like below, so that the application will stay for 1 minute after all jobs are complete:
APPLEND WAIT 
 RELDELAY 1  
ENDJOB      

#2 Use AJ INSERT command instead of the ADHOC command.