> -----Original Message----- > From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On > Behalf Of Charles Mills > Sent: Thursday, December 09, 2010 2:06 PM > To: IBM-MAIN@bama.ua.edu > Subject: Overriding STEPLIB > > All you JCL gurus, two questions regarding overriding a load library in a > PROC such as STEPLIB: > > 1. If a PROC has something like > > //STEPLIB DD DSN=whatever... > // DD DSN=blah... > > And you want to override it to a single load library, is there a preferred > way to do so? Coding > > //PSTEP.STEPLIB DD DSN=foo... > > Gives you an allocation of blah concatenated behind foo. > > I can solve it with > > //PSTEP.STEPLIB DD DSN=foo... > // DD DSN=foo... > > But that seems like kind of a kludge.
Here we actually have an empty installation-specific loadlib (HLQ.NULLLIB) that we can use to "cancel" a STEPLIB library. > 2. If a PROC has a DD statement and you want to make it go away and "not > exist" how do you do that? No, overriding it to DUMMY doesn't work -- > leads to S2013s or somesuch if it is STEPLIB. Again, I can solve it by > overriding it to an irrelevant load library, but that seems kind of > kludge also. Is there a preferred method? There you have me. I don't think there is any (standard) way to make a DD just "disappear". After all, think of what that would mean -- deleting a TIOT entry and anything connected to it. For the special case of STEPLIB, substituting a standard empty library for each concatenation is the only way I can think of to get the same effect as making the STEPLIB DD "disappear". HTH Peter -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html