ESP401W INVALID COMMAND when issuing an ESP command on a console

book

Article ID: 127243

calendar_today

Updated On:

Products

CA Workload Automation ESP Edition

Issue/Introduction

Trying to issue the ESP SUSPEND command on a z/OS console and getting the following error:

F ESP,SUSPEND prefix.event
ESP401W INVALID COMMAND, SUSPEND 

Environment

Release:
Component: ESPWA

Resolution

Not all ESP operator commands can be entered via z/OS modify command on a console.
SUSPEND is among those commands that are not supported.
 As an alternative, a pseudo command can be used to trigger a batch job  to issue the actual ESP command.
A CA OPS/MVS command rule can be used to create the pseudo command. 
The JCL to issue the ESP command can be:
 
//STEP1 EXEC PGM=ESP,PARM='SUBSYS(ESP)'
//STEPLIB DD DISP=SHR,DSN=prefix.CD7YLOAD
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SUSPEND prefix.event