How to invoke CA JCLCheck from CA Workload Automation ESP

Document ID : KB000125257
Last Modified Date : 25/01/2019
Show Technical Document Details
Introduction:
CA JCLCheck may be invoked from CA WA ESP to validate ESP jobs that contain JCL.   There are 2 methods of executing CA JCLCheck
1. Batch mode using the SIMULATE EVENT command
2. ISPF mode using the Simulate Event function.
Environment:
CA JCLCheck release 12.0
CA Workload Automation ESP release 11.4
Instructions:
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:
- Configuring CA JCLCheck for ESP use: 
https://docops.ca.com/ca-workload-automation-esp-edition/12-0/en/installing-and-configuring/configure-without-ca-csm/configure-interface-with-ca-jclcheck

- SIMULATE command:
https://docops.ca.com/ca-workload-automation-esp-edition/12-0/en/reference/commands/simulate-command-simulate-event-functions