Using DD name on JCLLIB in ESP Workload Automation
search cancel

Using DD name on JCLLIB in ESP Workload Automation

book

Article ID: 232656

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

How to set up the DD name globally with multiple libraries for JCLLIB?

Environment

Component : All Releases of ESP WORKLOAD AUTOMATION

Cause

Need to concatenate multiple JCLLIBs for ESP procedures and jobs to use for executing batch.

Resolution

Add a DDNAME to the following: In this example we are using DDNAME PRODJCL

- ESP STC Proc: This is the ESP Startup TASK

//ESPSTC  PROC PREFIX=ESP,             
//          PREFIX1=ESP               
//IEFPROC  EXEC PGM=CYBJS000,                        
//         REGION=0M,                                
//         TIME=1440,                                
//         DYNAMNBR=200                              
//STEPLIB  DD DSN=&PREFIX..CDY7LOAD,DISP=SHR         
//ESPCOLD  DD DSN=&PREFIX1..PARMLIB(M1$COLD),DISP=SHR
//ESPPARM  DD DSN=&PREFIX1..PARMLIB(M1$PARM),DISP=SHR
//ESPWARM  DD DSN=&PREFIX1..PARMLIB(M1$WARM),DISP=SHR
//PRODJCL DD DISP=SHR,DSN=BABRI02.ESP.JCLLIB    =====> Choose any DDNAME and concatenante libraries.
//                   DD DISP=SHR,DSN=BABRI02.ESP.JCLLIB1      
//         PEND                                      


- TSO logon PROC: Add the same DDNAME as in the ESP STC PROC to the LOGON Proc.


An error like below may show up if it is not coded correctly
ESP2722E DATA SET PRODJCL NOT CATALOGUED .

Use the DDNAME for the JCLLIB statement in a ESP Procedure

APPL TESTRUN WAIT
  JCLLIB PRODJCL                        
  COPYJCL 'BABRI02.ESP.COPYJCL'        
 
 JOB TESTRUN
  RUN DAILY
 ENDJOB