On Feb 7, 2008, at 8:49 AM, Steve Pryor wrote:

As previous posters have noted, you can change the secondary by doing an OPEN-J and modifying the JFCB at execution time, but of course this would have to be done by the application opening the dataset. You can also change the secondary for an existing dataset by specifying it in the JCL but the question really was how to do this without changing the JCL. There is also, of course, no way to change the primary space specification outside of JCL,
since allocation occurs before execution.


I am puzzled by the person who asked the question.
If you do NOT like the allocation you can delete the data set in question and use dynamic allocation to allocate the data set the way you want to. All from inside your program, what's the big deal? You can feed the volser and everything else (for DASD) in DYNALLOC. Why go messing around with open type=j (its neato but IMO over complicated ) Besides it *MIGHT* get messy in an SMS environment so no matter what you do it might be overridden by SMS (or other package).

Ed

----------------------------------------------------------------------
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

Reply via email to