Master Mainframe Technologies - COBOL, JCL, DB2, VSAM, CICS & More
ABEND Codes SQLCODEs File Status Interview Prep Contact
← Back to JCL Utilities
JCL Utilities | Intermediate | JCL

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.