Use the JCLLIB statement to:
Identify the names of the private libraries that the system uses for the job. The system searches the libraries for:
o Procedures named on any EXEC statements.
o Groups of JCL statements (called INCLUDE groups) named on any INCLUDE statements.
Identify the names of the system procedure libraries and installation-defined procedure libraries that the system uses for the job.
Identify the order in which the libraries are to be searched. The system searches the libraries in the order in which you specify them on the JCLLIB statement, prior to searching any unspecified default system procedure libraries.
The JCLLIB statement allows you to code and use procedures and INCLUDE groups in a private library without the need to use system procedure libraries.
You can code only one JCLLIB statement per job. assume that the system default procedure library includes SYS1.PROCLIB only. If you do not specify the JCLLIB statement, then the system searches only SYS1.PROCLIB. (Using a procedure describes how the system determines the default procedure library.)
//MYJOB1 JOB ... //MYLIBS1 JCLLIB ORDER=CAMPBEL.PROCS.JCL //S1 EXEC PROC=MYPROC1 . .
The system searches the libraries for procedure MYPROC1 in the following order: 1. CAMPBEL.PROCS.JCL 2. SYS1.PROCLIB
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!