How to automate package execution?

Document ID : KB000045745
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction/Summary: 

Endevor has a built-in interface for the CA 7 scheduler that can be used to automate package execution. If CA 7 is not available at your site, you can use the method described below to execute packages through a different scheduler, although it will not provide the same functionalities as the CA 7 interface.

Environment:  

All supported Endevor releases.

Instructions: 

To automate package execution without CA 7, build a job similar to the one below and store it in your job scheduler library to be automatically submitted:

Sample JCL resides in CSIQJCL member ENBP1000. 

//*(JOBCARD) 
//*-------------------------------------------------------------------* 
// INCLUDE MEMBER=SCMM@SYM 
//ENBP1000 EXEC PGM=NDVRC1, 
// PARM='ENBP1000', 
// REGION=4096K 
// INCLUDE MEMBER=SCMM@LIB 
//SYSPRINT DD SYSOUT=* 
//SYSOUT DD SYSOUT=* 
//SYSTERM DD SYSOUT=* 
//*-------------------------------------------------------------------* 
//C1MSGS1 DD SYSOUT=* 
//*-------------------------------------------------------------------* 
//*-------------------------------------------------------------------* 
//* THE ENPSCLIN DD STATEMENT CONTAINS THE BATCH PACKAGE FACILITY * 
//* CONTROL STATEMENTS. * 
//*-------------------------------------------------------------------* 
//ENPSCLIN DD * 
EXECUTE PACKAGE * 
//*-------------------------------------------------------------------* 
//SYSUDUMP DD SYSOUT=* 
//SYMDUMP DD DUMMY 

The ENPSCLIN DD has the SCL to execute the package. 
The default is to execute only Packages that have a status of Approved. 

Using the ENBP1000 package utility with an input SCL << EXECUTE PACKAGE * .>> will allow you to execute ALL approved packages that have a valid execution window for the time the job is running. Approved packages that were defined to be run on a different day will not be picked up.

Additional Information:

using-the-ca-7-interface-for-package-execution

manage-packages-in-batch-batch-package-facility

execute-package-syntax