Difference between steplib and proclib
Posted: Tue Nov 24, 2015 12:04 pm
What is the difference between steplib and proclib? When in a JCL, both programs and procedures are invoked by way of EXEC statements?
Yes, both are invoked by the EXEC statement, but different formats of the EXEC statement, which do different things.
A PROC contains JCL.
A PGM is executable.
PROCLIB tells the system where to look for (additional) PROCs.
STEPLIB tells the system where to look for (additional) PGMs (executable programs).
Thanks for all your help.Anuj Dhawan wrote:I think a rather appropriate confusion could have been between JOBLIB and PROCLIB, yes?![]()
STEPLIB is used in an individual step in the Job. It is placed immediately after the EXEC statement (where the confusion lies for you) to which it applies and is used only for that step. Following two links give you more explnation:
STEPLIB Definition: http://publibz.boulder.ibm.com/cgi-bin/ ... 0713232151
STEPLIB Examples: http://publibz.boulder.ibm.com/cgi-bin/ ... 2151&CASE=
PROCLIB (and JCLLIB) are used to specify where JCL is to be loaded from rather than programs. PROCLIB is the dd statement to override where to get procedures from.