Page 1 of 1

Difference between steplib and proclib

Posted: Tue Nov 24, 2015 12:04 pm
by Priya
What is the difference between steplib and proclib? When in a JCL, both programs and procedures are invoked by way of EXEC statements?

Re: Difference between steplib and proclib

Posted: Tue Nov 24, 2015 3:44 pm
by William Collins
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).

Re: Difference between steplib and proclib

Posted: Tue Nov 24, 2015 4:36 pm
by Anuj Dhawan
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.

Re: Difference between steplib and proclib

Posted: Thu Dec 10, 2015 2:09 pm
by Priya
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).
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.
Thanks for all your help.