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 DD name 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=my.jcllib1    =====> Choose any DDNAME and concatenated libraries
//         DD DISP=SHR,DSN=my.jcllib2      
//         PEND                                      


- TSO logon PROC: Add DD name PRODJCL to the LOGON proc.

  An error like the one 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 'my.esp.copyjcl'        
 
 JOB TESTRUN
  RUN DAILY
 ENDJOB