z/OS MVS JCL Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples of the JCLLIB statement

z/OS MVS JCL Reference
SA23-1385-00

Note: For each example, 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.)
Example 1:
//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
Example 2:
//MYJOB2   JOB     ...
//MYLIBS2  JCLLIB  ORDER=(CAMPBEL.PROCS.JCL,PUCHKOF.PROCS.JCL,
//            YUILL.PROCS.JCL,GARY.PROCS.JCL)
//S2       EXEC    PROC=MYPROC2
            .
            .
//INC2     INCLUDE  MEMBER=MYINC2
            .
            .
The system searches the libraries for procedure MYPROC2 and INCLUDE group MYINC2 in the following order:
  1. CAMPBEL.PROCS.JCL
  2. PUCHKOF.PROCS.JCL
  3. YUILL.PROCS.JCL
  4. GARY.PROCS.JCL
  5. SYS1.PROCLIB
Example 3: You can specify a system procedure library.
//MYJOB3   JOB     ...
//MYLIBS3  JCLLIB  ORDER=(SYS1.PROCLIB,CAMPBEL.PROCS.JCL)
//S3       EXEC    PROC=MYPROC3
            .
            .
The system searches the libraries for procedure MYPROC3 in the following order:
  1. SYS1.PROCLIB
  2. CAMPBEL.PROCS.JCL
  3. SYS1.PROCLIB (the system default procedure library is searched again)

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014