Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Difference between JCLLIB and JOBLIB statements

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Difference between JCLLIB and JOBLIB statements
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: 8593
Location: Back in jolly old England

PostPosted: Tue Nov 03, 2009 2:27 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Tue Nov 03, 2009 3:30 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Tue Nov 03, 2009 11:42 pm    Post subject: Reply to: Difference between JCLLIB and JOBLIB statements
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    Post subject:
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: 7910
Location: Bellevue, IA

PostPosted: Wed Nov 04, 2009 3:44 pm    Post subject:
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    Post subject:
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    Post subject:
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: 7910
Location: Bellevue, IA

PostPosted: Wed Nov 04, 2009 4:22 pm    Post subject:
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    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Thu Nov 05, 2009 2:35 pm    Post subject: Reply to: Difference between JCLLIB and JOBLIB statements
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    Post subject:
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.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm
No new posts Extracting Information from DD Statem... Charles Wolters All Other Mainframe Topics 7 Wed Apr 13, 2016 10:21 pm
No new posts Difference Between CICS WebSupport an... sachinji84 CICS 1 Mon Mar 07, 2016 7:25 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us