View previous topic :: View next topic
|
Author |
Message |
ashutosh.pr
New User
Joined: 13 Apr 2007 Posts: 36 Location: Pune
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
Back to top |
|
|
ashutosh.pr
New User
Joined: 13 Apr 2007 Posts: 36 Location: Pune
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Search the forum and come back with what is not clear to you, with some reference to manuals/threads. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
ashutosh.pr
New User
Joined: 13 Apr 2007 Posts: 36 Location: Pune
|
|
|
|
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
Thanks,
Ashutosh |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
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 |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
Robert very good explanation by you...... |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Thank you Mukesh -- it's all in the manuals, though! |
|
Back to top |
|
|
ashutosh.pr
New User
Joined: 13 Apr 2007 Posts: 36 Location: Pune
|
|
|
|
Thank you Robert.
I will make sure I go through the manuals thoroughly next time before posting.
Thanks,
Ashutosh |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
Sunilp_cse
New User
Joined: 02 Jul 2012 Posts: 7 Location: INDIA
|
|
|
|
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 |
|
|
|