How to invoke JCLCheck from Workload Automation ESP
search cancel

How to invoke JCLCheck from Workload Automation ESP

book

Article ID: 125257

calendar_today

Updated On:

Products

JCLCheck Workload Automation

Issue/Introduction

JCLCheck may be invoked from ESP to validate ESP jobs that contain JCL.   There are 2 methods of executing JCLCheck:
1. Batch mode using the ESP SIMULATE EVENT command
2. ISPF mode using the ESP Simulate Event function.

Environment

JCLCheck release 12.0
Workload Automation ESP release 11.4 and higher

Resolution

1. Batch mode execution using the SIMULATE EVENT command
Example #1:
// JOB statement
//STEP01  EXEC PGM=IKJEFT01,DYNAMNBR=20                           
//STEPLIB  DD DSN=caesp114.CD7YLOAD,DISP=SHR    <== ESP loadlib          
//                 DD DSN=cajck12.CAZ2LOAD,DISP=SHR       <== JCLCheck loadlib 
//JCLOPTS DD DSN=cajck12.options,DISP=SHR              <==  Optional.  Contains JCLCheck processing options.          
//SYSPRINT DD   SYSOUT=*                                             
//SYSTSPRT DD   SYSOUT=*                                             
//SYSTSIN DD *                                                       
ESP SUB(espp)                                                        
SIMULATE EVENT(cyb.eventxyz) JCLCHECK                                       
/*

 


Example #2:
// JOB statement
//STEP01 EXEC PGM=ESP,REGION=4M,PARM='SUBSYS(espp)'
//STEPLIB  DD DSN=caesp114.CD7YLOAD,DISP=SHR    <== ESP loadlib          
//                 DD DSN=cajck12.CAZ2LOAD,DISP=SHR       <== JCLCheck loadlib 
//JCLOPTS DD DSN=cajck12.options,DISP=SHR              <==  Optional. Contains JCLCheck processing options.          
//SYSPRINT DD   SYSOUT=*                                             
//SYSTSPRT DD   SYSOUT=*                                             
//SYSIN DD *                                                       
SIMULATE EVENT(cyb.eventxyz) JCLCHECK                                       
/*


2. SIMULATE an event from the ESP ISPF interface:

    a. On the ESP Event Control Menu, use option "M  Simulate" on a single event name, or bring up a list of events, and enter M next to an event name.
    b. On the Simulate Event Execution panel (paneid CYBESSIM), specify Y for "Additional Options".  
    c. On panelid CYBESSI1, enter Y for  "Invoke JCLCheck".
    d. The JCLCheck parameters panel (panelid CYBESSI6) is displayed.  (Parameters are optional, and may be left blank. Refer to the SIMULATE command for descriptions of these parameters.) 
    e.  Hit  Enter to run the simulation.                                       
    f. The simulation output is displayed on the user console.  

Additional Information

- Reference in: 

Configure Interface with JCLCheck


- ESP SIMULATE command:
https://techdocs.broadcom.com/us/en/ca-mainframe-software/automation/ca-workload-automation-esp-edition/12-0/reference/commands/simulate-command-simulate-event-functions.html