JCL PROCLIB

JCL JCLLIB JCL COPYLIB

Advertisements


PROCLIBs are Procedure Libraries.

These may be system or user PROCLIBs.

PROCLIB will specify the library where the procedures existed.

This will be used when the catalog procedures are coded in the JCL.


Syntax:
//[name]  JCLLIB  PROCLIB=ddname...  [comments]

Specifies the ddname for the procedure library.

The system is to search for cataloged procedures called by EXEC statements in the job.

If the procedure library requested is not found, JES3 flushes the job before execution.


Example 1:

//MYLIBS   JCLLIB  ORDER=MTH.PROCLIB
//STEP01   EXEC    PROC=MTHPROC

The system searches the libraries for procedure MTHPROC in the following order:


  1. MTH.PROCLIB
  2. SYS1.PROCLIB

Example 2:

//MYLIBS   JCLLIB  ORDER=(MTH.PROCLIB1,MTH.PROCLIB2,
//            MTH.PROCLIB3)
//STEP01   EXEC    PROC=MTHPROC

The system searches the libraries for procedure MTHPROC in the following order:


  1. MTH.PROCLIB1
  2. MTH.PROCLIB2
  3. MTH.PROCLIB3
  4. SYS1.PROCLIB

Example 3:

//MYLIBS  JCLLIB  ORDER=(SYS1.PROCLIB,MTH.PROCLIB1)
//STEP01  EXEC    PROC=MTHPROC

The system searches the libraries for procedure MTHPROC in the following order:


  1. SYS1.PROCLIB
  2. MTH.PROCLIB1
  3. SYS1.PROCLIB (searched again the system default procedure library)

JCL JCLLIB JCL COPYLIB

Advertisements