Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How do we upload a procedure to a SYS1.PROCLIB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Ashok singh
Warnings : 1

New User


Joined: 18 Sep 2006
Posts: 1

PostPosted: Mon Sep 18, 2006 12:47 pm    Post subject: How do we upload a procedure to a SYS1.PROCLIB
Reply with quote

hai maimframe frens
I would like to get crystal clear ideas abt the JCLLIB,JOBLIB,STEPLIB. And also how do we upload a procedure to a SYS1.PROCLIB.


your kind response is eagerly awaited.

ASHOK

Warning: Title Changed
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Mon Sep 18, 2006 1:46 pm    Post subject:
Reply with quote

JOBLIB / STEPLIB



JOBLIB
It is a DD (Data definition) statement, and it specifies where
the program (which is specified in EXEC statement) exists.
It is applicable to all job steps in that job. It cannot be used
in cataloged procedures.
Syntax -> //JOBLIB DD DSN=dataset
EXAMPLE JCL ->

//MYJOB JOB (E343),'KRISHNA'
//JOBLIB DD DSN=SE.TEST.LOADLIB,DISP=SHR <--- Attention
//STEP1 EXEC PGM=COBPROG

Immediately following the JOB statement is the JOBLIB DD
statement. This is used to specify the location of the
program that is to be executed

STEPLIB
It is also like JOBLIB. It is used to tell in which dataset program resides, It will be coded in JOB STEP. It is only for that step instead of entire JOB. It can be placed any where in the job step. STEPLIB can be coded in cataloged procedures.
Syntax -> //STEPLIB DD DSN=dataset
Example JCL ->
//MYJOB JOB (U456),'KRISHNA'
//STEP1 EXEC PGM=COBPROG
//STEPLIB DD DSN=TEST.MYPROD.LIB,DISP=SHR
//STEP2 EXEC PGM=COBPROG2
//STEPLIB DD DSN=TEST.MYPROD.LIB1,DISP=SHR
In above example, STEP1 is executing COBPROG which is member of TEST.MYPROD.LIB
STEP2 is executing COBPROG2 which is member of TEST.MYPROD.LIB1


If both the JOBLIB and STEPLIB statements are coded, then the STEPLIB specification will override JOBLIB specification.



JCLLIB: When you executing CATALOGED PROCEDURE, If you not specified where it is with JCLLIB statement , it will serach for this procedure in system procedure library SYS1.PROCLIB

Job will search the JCLLIB libraries first, in the order in which they?re coded. If the procedure is not found in any of the named libraries, SYS1.PROCLIB is searched
Back to top
View user's profile Send private message
gharidoss

New User


Joined: 04 Feb 2006
Posts: 1

PostPosted: Mon Sep 18, 2006 2:03 pm    Post subject: Re: doubts
Reply with quote

Hi,

JOBLIB:- To set the load module library for the entire job. Afte the JOB and Before the EXEC statement.

STEPLIB:- To set the load module libraray for the specific step only. after the EXEC statement.

JCLLIB:- To oevrride the PDS name of the Procs/Members PDS. Afte the JOB and Before the EXEC statement.
ex
Generally procs library is sys1.proclib, I want to change into my own PDS,
// JCLLIB ORDER=(MYPDS)




Thanks,
Hari
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Mon Sep 18, 2006 3:28 pm    Post subject: Re: doubts
Reply with quote

JCLLIB also indicates the alternate library(ies) for an INCLUDE statement.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 6 Thu Oct 27, 2016 10:20 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
This topic is locked: you cannot edit posts or make replies. Stored procedure on Federated thru DB2 arif677 DB2 6 Tue May 31, 2016 11:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us