IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Difference between JCLLIB and JOBLIB statements


IBM Mainframe Forums -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
ashutosh.pr

New User


Joined: 13 Apr 2007
Posts: 36
Location: Pune

PostPosted: Tue Nov 03, 2009 2:20 pm
Reply with quote

Hi,
I need to know the difference between the usage of 'JCLLIB ORDER' and 'JOBLIB DD' statements.
Asking this as the keyword ORDER is the part of JCLLIB statement and is not the same as the usage of JOBLIB statement which has the syntax the same as a STEPLIB statement.
One similarity which I know is that both of them should be used just after the JOB statement.
Are the 'JOBLIB DD' and 'JCLLIB ORDER' statements irreplacable, and are there any considerations of one's usage over the another (any benefits as such).

Thanks,
Ashutosh
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 03, 2009 2:27 pm
Reply with quote

I suggest that you use the "IBM Manuals" button at the top of any page and take a good look at the JCL Reference manual.

All will be explained.

This is something that you should have done before posting here icon_evil.gif
Back to top
View user's profile Send private message
ashutosh.pr

New User


Joined: 13 Apr 2007
Posts: 36
Location: Pune

PostPosted: Tue Nov 03, 2009 3:22 pm
Reply with quote

Hi Expat,
Actually I read the manuals, but I guess the JCLs at my shop have used the same load library in individual steps as STEPLIBs instead of mentioning it in the top in a JOBLIB. That confused me and I thought only one out of the two can be used.
A little more googling helped.

Thanks,
Ashutosh
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Nov 03, 2009 3:30 pm
Reply with quote

Search the forum and come back with what is not clear to you, with some reference to manuals/threads.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Nov 03, 2009 11:42 pm
Reply with quote

Ashtosh,

Do check the forum manuals as suggested.

Quote:
I guess the JCLs at my shop have used the same load library in individual steps as STEPLIBs instead of mentioning it in the top in a JOBLIB. That confused me


There is nothing to get confused.

From the manuals

Quote:


Use a STEPLIB DD statement to define a private library for one job step in a job. If you include a STEPLIB DD statement for a job step and a JOBLIB DD statement for the entire job, the system first searches the step library and then the system library for the requested program. The system ignores the job library for a step that has a STEPLIB DD statement.
Back to top
View user's profile Send private message
ashutosh.pr

New User


Joined: 13 Apr 2007
Posts: 36
Location: Pune

PostPosted: Wed Nov 04, 2009 11:50 am
Reply with quote

Thanks Aaru,
What I am not able to understand is if the same load library is mentioned in all the STEPLIB statements, then the purpose could have been achieved using a single JOBLIB statement.

I will go through the manuals in detail. Somehow it had got into my head that JCLLIB and JOBLIB can be used interchangeably so this question came up.
Now I am out of it icon_smile.gif

Thanks,
Ashutosh
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8651
Location: Dubuque, Iowa, USA

PostPosted: Wed Nov 04, 2009 3:44 pm
Reply with quote

JCLLIB points to a procedure library -- human-readable, usually RECFM=FB 80-byte records that contain JCL statements.

JOBLIB points to a load library -- executable code that is not human readable, usually RECFM=U records that can be up to 32K long. A STEPLIB points to a load library as well and allows more flexibility in the JCL.

JOBLIB and JCLLIB are totally distinct constructs.
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Wed Nov 04, 2009 3:53 pm
Reply with quote

jcllib order=xyz.proc
exec procA

will exexute the proc from the catalogued lib xyz.proc

else

simply coding as
exec procA will execute the proc from system defined library in ur shop.
Back to top
View user's profile Send private message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Wed Nov 04, 2009 3:55 pm
Reply with quote

Robert very good explanation by you......
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8651
Location: Dubuque, Iowa, USA

PostPosted: Wed Nov 04, 2009 4:22 pm
Reply with quote

Thank you Mukesh -- it's all in the manuals, though!
Back to top
View user's profile Send private message
ashutosh.pr

New User


Joined: 13 Apr 2007
Posts: 36
Location: Pune

PostPosted: Wed Nov 04, 2009 9:01 pm
Reply with quote

Thank you Robert.
I will make sure I go through the manuals thoroughly next time before posting.

Thanks,
Ashutosh
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Nov 05, 2009 2:35 pm
Reply with quote

Ashutosh,

Quote:

What I am not able to understand is if the same load library is mentioned in all the STEPLIB statements, then the purpose could have been achieved using a single JOBLIB statement.


Very true.
Back to top
View user's profile Send private message
Sunilp_cse

New User


Joined: 02 Jul 2012
Posts: 7
Location: INDIA

PostPosted: Mon Aug 13, 2012 12:07 pm
Reply with quote

JOBLIB DD statement specifies the private library that the system needs to search to obtain the program named in each of the EXEC statements PGM parameters. Only if the program is not found in the private, the system searches in the system libraries.
JCLLIB ORDER is a JCL stmt that allows the user to specify
his/her own proclibs and/or specify the order in which
they're searched to find the PROC(s) or INCLUDE libraries
invoked in the JCL. You can use the ORDER clause to do
this. You can specify private (user) or system libraries
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts What is the difference between Taskty... Compuware & Other Tools 2
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts Embeding DB2 sql statements in scirpt... DB2 7
No new posts Difference between VALIDPROC and CHEC... DB2 3
No new posts Difference between CEE3250C and CEE3204S COBOL Programming 2
Search our Forums:

Back to Top