Difference between steplib and proclib

JES2/3, JCL, utilities.
Post Reply
Priya
Registered Member
Posts: 50
Joined: Tue Jul 02, 2013 11:43 pm

Difference between steplib and proclib

Post 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?
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Difference between steplib and proclib

Post 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).
User avatar
Anuj Dhawan
Founder
Posts: 2799
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Difference between steplib and proclib

Post 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.
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.
Priya
Registered Member
Posts: 50
Joined: Tue Jul 02, 2013 11:43 pm

Re: Difference between steplib and proclib

Post 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.
Post Reply

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

Register

Sign in

Return to “JCL - Job Control Language.”