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 All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts After newcopy the CICS program user f... CICS 7
No new posts Starting a CICS Transaction from a Th... CICS 0
No new posts Problem moving a cobol program into E... COBOL Programming 3
No new posts Difference between joblib and steplib JCL & VSAM 2
No new posts Error to invoke MPP program through B... IMS DB/DC 4
Search our Forums:


Back to Top