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

How to override steplib in JCL for a called program


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top