Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : When you specified V for RECFM parameter, LRECL value is largest record in the file plus 4 bytes. These four bytes contain the actual length of each variable length record in the file

Google
 
Web mainframegurukul.com

PROCLIB

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL
  View previous topic :: View next topic  
Author Message
83.arun
Member


Joined: 14 Oct 2008
Posts: 9

Answer was approved by Question owner.
Useful Post
2 votes
Not an useful post
Greate Post!! Salute Author
2 salutes

PostPosted: Tue Oct 14, 2008 8:38 pm    Post subject: PROCLIB Reply with quote

Defining A CATALOGUED proc:
----------------
//CATLOG1 PROC.
// ***"EXEC STATEMENTS AFTER THAT"****
// ********DD STATEMENTS & ALL********


I need some one who could help me out with this statement:
===========================================

//MYJOB JOB,
//PROCLIB DD DSN=MYPROCLIB, DISP=SHR
//S1 EXEC CATLOG1


Now the explanation given to this :
the dd statement identifies the pds where the procedure resides. Moreover itmust be there if this is a private library.The name CATLOG1 is not necessarily the name that has appeared on the proc card. Whatever the name is assigned to the PDS member when it is stored ,is also the name of the procedure.

NOW MY DOUBT IS :
1.HOW DIFFERENT IS THE PROCLIB STATEMENT FROM JCLLIB ORDER STATEMNT?
2.IS THERE ANY DIFFERENCE B/W THE TWO IF SO HOW?
3.IS THE PROCLIB STATEMENT MENTIONED ABOVE A KEYWORD IN JCL?
4.NOW IF I STORE A PROC WITH A DIFFERENT NAME FROM WHAT IS MENTIONED IN THE PROC CARD WHICH NAME SHOULD I BE USING TO CALL THE PROC IN THE MAIN JCL ??

KINDLY HELP ME WITH THESE QUERIES......


THANKS
KUMAR
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.

Natarajan
Moderator


Joined: 10 Oct 2008
Posts: 537
Location: chennai

Answer was approved by Question owner.
Useful Post
1 votes
Not an useful post
Greate Post!! Salute Author
1 salutes

PostPosted: Wed Oct 15, 2008 10:48 am    Post subject: JCLLIB PROCLIB INSTREAM PROC Reply with quote

Your question is something related to " calling procedures " in JCL.

Let me give you some background on this.

When you call a procedure, the system retrieves it using the following search order

1. From the input stream

If the called procedure is an in-stream procedure, the system retrieves it from the job
input stream. You must place the in-stream procedure before the EXEC statement that calls it.

2. From a private library

If the called procedure is cataloged in a private library, the system
retrieves it from the private library that you specify on the JCLLIB
statement that appears earlier in the job stream.

3. From the system library

If the called procedure is cataloged in a system libarary, the subsystem retrives it as follows.

In JES2, from the library names on the PROCLIB=parameter on a /*JOBPARM statement
In JES3, from the library name on the PROC=parameter OF THE //*MAIN statement
In MSTR, the data set specified by the IEFPDSI DD statement in the currently active master JCL is searched for procedures.
The default master JCL specifies SYS1.PROCLIB



It look like your JCL is some thing related to "Easy PROCLIB" product.

-------
In the past, OET licensed a product named Easy PROCLIB. This product gave mainframe batch customers the ability to execute code from a library that was not considered part of the system defaults. Since this function has now been added to the z/Series operating system, Easy PROCLIB is no longer necessary.

As part of the process of eliminating the Easy PROCLIB license, batch customers who utilized the Easy PROCLIB software will need to make changes to their JCL. The old format was to add a DD statement with the reserved name of "PROCLIB" prior to the first execute statement. This statement could reference a library or a concatenation of libraries, which would be searched before the normal system libraries. An example would be:

//PROCLIB DD DSN=MY.PROCLIB,DISP=SHR
// DD DSN=MY.OTHER.PROCLIB,DISP=SHR

The above DD statement needs to be replaced with a JCLLIB statement. This JCLLIB statement can use any name except "PROCLIB".

//ANYLIB JCLLIB ORDER=(MY.PROCLIB,MY.OTHER.PROCLIB)

For a single library the parentheses are optional as shown in the following example:

//MYLIB JCLLIB ORDER=MY.PROCLIB

The JCLLIB statement must follow the JOB statement and precede the first EXEC statement.

------------
Back to top
View user's profile Send private message Visit poster's website
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Jan 15, 2016 9:16 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-3536.html