Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why the StEPLIB always overrides the JOBLIB,in JCL? [closed]

Tags:

mainframe

jcl

In JCL the STEPLIB always overrides the JOBLIB.Can anyone explain why is it so?

like image 865
Sahu Vinita Avatar asked Dec 27 '22 00:12

Sahu Vinita


1 Answers

The below are excerpts from the IBM manuals and explain what the Joblib DD statement does and how the Steplib DD statement interacts with the Joblib statement.

Use the JOBLIB DD statement to:

  • Create a private library.

  • Identify a private library that the system is to search for the program named in each EXEC statement PGM parameter in the job. Only if the system does not find the program in the private library, does it search the system libraries.

Relationship of a STEPLIB to a JOBLIB

Use a JOBLIB DD statement to define a private library that the system is to use for an entire job. If you include a JOBLIB DD statement for the job and a STEPLIB DD statement for an individual job step, the system first searches the step library and then the system library for the program requested in the EXEC statement. The system ignores the JOBLIB library for that step.

like image 78
Deuian Avatar answered Feb 11 '23 04:02

Deuian