Difference between steplib and proclib
Difference between steplib and proclib
What is the difference between steplib and proclib? When in a JCL, both programs and procedures are invoked by way of EXEC statements?
-
- Global Moderator
- Posts: 490
- Joined: Sun Aug 25, 2013 7:24 pm
Re: Difference between steplib and proclib
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).
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
- Founder
- Posts: 2823
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Difference between steplib and proclib
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.

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,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Re: Difference between steplib and proclib
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.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute