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 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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


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