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 JCLLIB and PROCLIB
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: 19243 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.
PROCLIB refers to a Procedure Library. It is a dataset or a set of datasets that contain cataloged procedures (PROCs) written in Job Control Language (JCL). These procedures are predefined sets of JCL statements that can be included in jobs to perform repetitive tasks or set up common environments, thereby saving time and ensuring consistency.
Key Points about PROCLIB:
Cataloged Procedures:
These are reusable JCL code blocks stored in PROCLIB datasets.
They allow for standardization and reuse of JCL, making job management more efficient.
Dataset Definition:
PROCLIB is defined as one or more partitioned datasets (PDS) or partitioned dataset extended (PDSE) on the mainframe.
These datasets are specified in the JES (Job Entry Subsystem) initialization parameters, often in the JES2 or JES3 subsystem initialization statements.
Usage in Jobs:
When submitting a job, you can invoke a cataloged procedure from the PROCLIB by using the EXEC statement in your JCL.
For example, //MYPROC EXEC PROCNAME tells the system to use the procedure named PROCNAME from the PROCLIB.
Advantages:
Reusability: Procedures can be reused across multiple jobs, reducing redundancy.
Consistency: Ensures that the same steps are followed every time the procedure is executed.
Maintainability: Easier to update a single procedure in the PROCLIB rather than modifying multiple JCL scripts.
cya |
|
Back to top |
|
|
|