It's somewhat of a general, not specific, desire. I want to use an ENVAR to hold the name of the DB2 PLAN that my batch jobs are to use. CEEPRMxx would be used to set the default plan. To override that I could specify a different plan in a CEEROPT and compile this in to a user load library and then include that load library in my JOBLIB concatenation. This works, but could have the unitended consequence that any time I use that user load library I always get that CEEROPT if I don't remember to delete it when I'm done.
The way I just put forth would 1) create a temporary load library and compile a CEEROPT in to it 2) this can be referred to in STEPLIBs for one or more steps 3) it automatically gets deleted at the end of the job, so there's no possibility of using that CEEROPT when I don't mean to. (Plus, it has a unique DSNAME anyway.) CEEOPTS works, but it's (to my mind) overly verbose for this simple need. Plus I'd have to specify it for each step that I want to use it in. Well, I suppose this is true for the STEPLIB in any case, but for some reason that doesn't bother me as much. Probably just a personal problem. PARM might be OK except that it can't be used for an IMS batch job. In any case, it was a fun little exercize and I'm glad I did it. Frank -- Frank Swarbrick Applications Architect - Mainframe Applications Development FirstBank Data Corporation - Lakewood, CO USA P: 303-235-1403 On 1/3/2011 at 1:17 PM, in message <listserv%[email protected]>, Mark Zelden <[email protected]> wrote: > On Mon, 3 Jan 2011 12:31:49 -0700, Frank Swarbrick > <[email protected]> wrote: > >>So here's what I've got working. Not the most obvious thing in the world, > but it seems to work. It forces me to use STEPLIB instead of JOBLIB for my > LOADLIB concatenation, which I don't prefer, but I can live with it. > > Why does it force you to use STEPLIB? > > > See my last post - what exactly are you trying to accomplish? Just setting > an environment variable at runtime? If so, have you tried doing that > just in the parm or the CEEOPTS DD? > > Mark > -- > Mark Zelden - Zelden Consulting Services - z/OS, OS/390 and MVS > mailto:[email protected] > Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html > Systems Programming expert at http://expertanswercenter.techtarget.com/ > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html >>> The information contained in this electronic communication and any document attached hereto or transmitted herewith is confidential and intended for the exclusive use of the individual or entity named above. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any examination, use, dissemination, distribution or copying of this communication or any part thereof is strictly prohibited. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy this communication. Thank you. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

