JCLLIB


A JCLLIB statement is used to identify the private libraries used in the job. The libraries contain the cataloged procedures.

The system searches the libraries in the same order coded on the JCLLIB statement. There can be only one JCLLIB statement in a JCL.

Syntax -

//[DDname]  JCLLIB  ORDER=(library1[,library2,...])  [comments]
  • DDname - Specifies the user-defined DDname.
  • library1,library2,.. - Specifies the procedure libraries.
    Maximum 15 datasets can be coded.
    No temporary datasets allowed.
  • Comments - Comment used to make a note of the current statement, and it follows the parameter field. The comment field should precede with a blank after the parameter field.

The parentheses are optional if only one library is coded in the search order. If more than one library needs to bed coded, those should be within braces.

Examples -


Scenario - Coding single procedure library.

//MTHEXMP1 JOB (META007),'PAWAN Y',NOTIFY=&SYSUID
//MYLIBS   JCLLIB  ORDER=MTH.PROCLIB
//STEP01   EXEC PROC=MTHPROC

The system searches for procedure MTHPROC in the following order -

  1. MTH.PROCLIB
  2. SYS1.PROCLIB