View previous topic :: View next topic
|
Author |
Message |
onkarnath Currently Banned New User
Joined: 22 Jan 2008 Posts: 1 Location: hyderabad
|
|
|
|
Hi All
what is the difference between PROCLIB and JCLLIB when any one of them to be used in a JCL program? |
|
Back to top |
|
|
Ajay Baghel
Active User
Joined: 25 Apr 2007 Posts: 206 Location: Bangalore
|
|
|
|
JCLLIB is the operation keyword on a jcl statement used to identify a Catalogued procedure library or INCLUDE library.
-Ajay |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
onkar,
Welcome to the forums.
Quote: |
what is the difference between PROCLIB and JCLLIB when any one of them to be used in a JCL program? |
JCLLIB is user defined library whereas PROCLIB is a system library. Check this link
http://ibmmainframes.com/about1891.html |
|
Back to top |
|
|
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 165 Location: Bangalore
|
|
|
|
JCLLIB is the user defined library for the cataloged PROCs.
whereas, PROCLIB is the system defined library for the cataloged PROCs. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
The JCLLIB statement allows you to code and use procedures and INCLUDE groups in a private library without the need to use system procedure libraries. You can code only one JCLLIB statement per job.
Further, JCLLIB is analogous to a JOBLIB JCL statement. Instead of pointing to a load library that remains active for the length of the JOB, a JCLLIB statement points to an alternative JCL library to be used for the length of the JOB. All cataloged procedures referenced in a JOB are searched for in the JOB's JCLLIB. If a JCLLIB isn't provided, the default JCL library is searched. And
Quote: |
PROCLIB is the system defined library for the cataloged PROCs. |
|
|
Back to top |
|
|
srinivas_443
New User
Joined: 19 Dec 2007 Posts: 11 Location: chennai
|
|
|
|
JCLLIB must fall after JOB statement |
|
Back to top |
|
|
jimmybhandari
New User
Joined: 04 Jun 2009 Posts: 13 Location: bangalore
|
|
|
|
srinivas_443 wrote: |
JCLLIB must fall after JOB statement |
Is there an alternative to JCL lib statement. Anything similar to steplib statement, which we dont need to specify at the top of the JCL but, can be specified just after calling the PROC. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Unfortunately not.
Quote: |
A JCLLIB statement:
Must appear after the JOB statement and before the first EXEC statement in the job.
Must appear before any INCLUDE statement.
Must not appear within an INCLUDE group.
|
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
jimmybhandari wrote: |
Is there an alternative to JCL lib statement. Anything similar to steplib statement, which we dont need to specify at the top of the JCL but, can be specified just after calling the PROC. |
Even if yes, what purpose will that serve to you? If you tell us what do you want to accomplish there can be some alternative solution(s). |
|
Back to top |
|
|
jimmybhandari
New User
Joined: 04 Jun 2009 Posts: 13 Location: bangalore
|
|
|
|
Anuj Dhawan wrote: |
jimmybhandari wrote: |
Is there an alternative to JCL lib statement. Anything similar to steplib statement, which we dont need to specify at the top of the JCL but, can be specified just after calling the PROC. |
Even if yes, what purpose will that serve to you? If you tell us what do you want to accomplish there can be some alternative solution(s). |
Hi Anuj,
Its just that i wanted to make it most convinient for the user to use this Proc. Having something which works similar to STEPLIB will make sure that i can have a single set of statements to call and make use of the PROC. Now, user will have to include this JCLLIB statement at top of the main JCL. Moreover, the main JCL may be having many other Procs and unnecessarily system will search this library before going to the system catlg. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Why not contact your site support group and have the procedure added to the application procedure library? Many sites have a PROCLIB that is defined within the system for automatic resolution, which is used for application procedures.
Quote: |
unnecessarily system will search this library before going to the system catlg. |
Yeah, right. The system uses the system catalog to find the files your JCL references, before ever searching a library for a procedure. System catalog is a specific term with a specific meaning -- either use it correctly, learn what it means, or don't use the term to prevent misunderstandings by your non-standard use of a very specific term. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
If what you are providing is that important (or helpful) it should be moved to the system libraries.
If not, that is why you have JCLLIB, PROCLIB statements to enable users to access resources that are not site accepted. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
I don't get what exactly you mean -- may be catalog procedures can be your choice |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
oh Robert, Dick -- you guys are just too fast..! |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
What can I say, Anuj? Fast fingers? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
May be better key board... or was I taking rather long intervals in adjusting my glasses
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Quote: |
rather long intervals in adjusting my glasses |
Bar service is slow ? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
oh no...glasses=Spectacles... |
|
Back to top |
|
|
|