Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to override steplib in JCL for a called program

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

New User


Joined: 12 Jul 2005
Posts: 4

PostPosted: Tue Oct 25, 2005 4:55 am    Post subject: How to override steplib in JCL for a called program
Reply with quote

Hi all,

I need to know how to override steplib in JCL for a called program. I have a program A that calls program B. I checked in the Proc to see if program B is used anywhere at all. There is no mention of program B. I have overrode program A in JCL with the load i wanted but i also want to change the load for program B. Please advise on how this needs to be done.

Thanks
Saara
Back to top
View user's profile Send private message

spanda

New User


Joined: 31 Aug 2005
Posts: 48
Location: U.K.

PostPosted: Tue Oct 25, 2005 3:31 pm    Post subject: Re: How to override steplib in JCL for a called program
Reply with quote

One option is to compile/assemble program B in a load library which does not have any other programs/subroutines used by the executing program.

Put this library on top of the STEPLIB concatenation. Or use this library in a JOBLIB statement at the top of the JCL (after the jobcard, of course).

e.g., if you have program A, B, C in APP.LOADLIB, then compile B into MY.LOADLIB and code STEPLIB as below:

// EXEC PGM=A
//STEPLIB DD DSN=MY.LOADLIB,DISP=SHR
// DD DSN=APP.LOADLIB,DISP=SHR
//.... rest of the JCL.

Hope this helps.
Panda.
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 IKJEFT01 program from Rexx upendrasri CLIST & REXX 4 Wed Nov 15, 2017 4:27 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us