JCLLIB and INCLUDE
Problem Description
Use JCLLIB and INCLUDE for procedure libraries.
Expected Output
Modular JCL with includes
Hints
JCLLIB specifies library, INCLUDE brings in members.
Solution
//INCLJOB JOB (ACCT),CLASS=A
//*
//* JCLLIB specifies where to find PROCs and INCLUDE members
// JCLLIB ORDER=(MY.JCL.LIBRARY,MY.COMMON.JCL)
//*
//* INCLUDE brings in JCL from library member
// INCLUDE MEMBER=STANDARD
//*
//* The STANDARD member might contain:
//* //SYSPRINT DD SYSOUT=*
//* //SYSOUT DD SYSOUT=*
//* //SYSIN DD DUMMY
//*
//STEP1 EXEC MYPROC
//* MYPROC is searched in JCLLIB libraries
//*
// INCLUDE MEMBER=CLEANUP
//* Common cleanup steps
//
Explanation:
JCLLIB ORDER lists libraries to search. INCLUDE brings in JCL members.