In JCL the STEPLIB always overrides the JOBLIB.Can anyone explain why is it so?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With