How to insert AGENT_MON job into active application.
search cancel

How to insert AGENT_MON job into active application.

book

Article ID: 278155

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Is there is a way to insert an AGENT_MONITOR job into an active application (AGENTMON) using a batch job versus going through ESP workstation or CSF, etc.

Environment

ESP Workload Automation

Resolution

You can run an ESP batch job pointing to the master SUBSYSTEM to insert a AGENT_MON job using APPLINS command.

//STEP1    EXEC PGM=ESP,REGION=3000K,PARM='SUB(esp)MASTER'    ===> Your ESP subsystem
//STEPLIB DD DISP=SHR,DSN=ESP.CD7YLOAD   ===> Your loadlib   
//SYSPRINT DD SYSOUT=*                                      
//SYSIN    DD  *                                            
  APPLINS APPL(applname.0) -                                
  STATEMENTS('AGENT_MONITOR agentname; -                       
  AGENT agentname; -                                           
  STATINTV 1; -                                             
  ENDJOB')                                                  
//                           

 

 

Additional Information

APPLINS Command: Insert Commands and Statements

https://techdocs.broadcom.com/us/en/ca-mainframe-software/automation/ca-workload-automation-esp-edition/12-0/reference/commands/applins-command-insert-commands-and-statements.html