View previous topic :: View next topic
|
Author |
Message |
sunojsm Warnings : 1 New User
Joined: 21 Jun 2004 Posts: 33 Location: Andorra
|
|
|
|
hi all,
some questions
1.Diff bwtween JCL Lib and Proc lib?
2.Is there a way in JCL to identify the oldest GDG version assuming we don't know how many generations will exist at any given time?
bye |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Quote: |
Diff bwtween JCL Lib and Proc lib |
JCLLIB is user defined catalog library
PROCLIB is predefined system library
Quote: |
Is there a way in JCL to identify the oldest GDG version assuming we don't know how many generations will exist |
Yes, yiou can refer as A.B.C(-1) to get the previous generation. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
JCLLIB is a JCL stmt that allows the user to specify his 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 |
|
|
jinal_mca
New User
Joined: 05 Jan 2007 Posts: 22 Location: Pune, India
|
|
|
|
hi dear
JCLlib is a library which is having catloged procedures which are defined by the users.
So bfor calling any catloged procedure u have to define JCLLIB path.
syntax is
//NAME JCLLIB ORDER='PATH'
CORRECT M IF I M WRONG
THNX
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
For my $.02, i'd describe proclib and jcllib as follows:
PROCLIBs are Procedure Libraries. These may be system or user PROCLIBs. Typically, a site's PROCs are stored in one or more user-defined PROCLIB(s) - not a system PROCLIB.
In addition to the JCLLIB statement that allows library specification, "jcllib"s are one or more places to store execution jcl (production, test, someone's "own" personal library, etc). Many sites also have some jcllib(s) that are where scheduling software retrieves members for running schedlued jobs.
Also, to identify the oldest version in a gdg via jcl, you could run an IDCAMS step with a LISTCAT. Specifying -1 will get the previoius version (if one exists) but that may not be the oldest version. |
|
Back to top |
|
|
Sahoo
New User
Joined: 08 Jun 2006 Posts: 53
|
|
|
|
JCLLIB is a JCl keyword used for defining the Catalogued procedure
There is no such reserved word PROCLIB. Generally PROCLIB is used as label in the JCLLIB statement
//PROCLIB JCLLIB ORDER=DATASET NAME
Regarding getting the versions of GDG use IDCAMS LISTCAT command |
|
Back to top |
|
|
jinal_mca
New User
Joined: 05 Jan 2007 Posts: 22 Location: Pune, India
|
|
|
|
In JCLLIB we can define order stmt where u can define no of libraries which are seperated by comma.
so that system will search for that particular procedure in the sequence as specified in the order stmt.
cya |
|
Back to top |
|
|
|