IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Difference bw PROCLIB & JCLLIB


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sunojsm
Warnings : 1

New User


Joined: 21 Jun 2004
Posts: 33
Location: Andorra

PostPosted: Fri Mar 25, 2005 11:04 am
Reply with quote

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
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Fri Mar 25, 2005 8:39 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Mar 26, 2005 7:14 am
Reply with quote

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
View user's profile Send private message
jinal_mca

New User


Joined: 05 Jan 2007
Posts: 22
Location: Pune, India

PostPosted: Sat Jan 20, 2007 2:09 pm
Reply with quote

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
icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Sun Jan 21, 2007 7:42 am
Reply with quote

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
View user's profile Send private message
Sahoo

New User


Joined: 08 Jun 2006
Posts: 53

PostPosted: Sun Jan 21, 2007 12:45 pm
Reply with quote

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
View user's profile Send private message
jinal_mca

New User


Joined: 05 Jan 2007
Posts: 22
Location: Pune, India

PostPosted: Tue Jan 23, 2007 3:23 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Difference between joblib and steplib JCL & VSAM 2
No new posts Pull data using date difference betwe... DB2 6
No new posts Difference between PLT txn and schedu... CICS 3
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
Search our Forums:

Back to Top