Changing an allocated DDNAME is a recipe for a train wreck. Just don't. 

The Allocation component is older than dirt. If you were meant to be able to do 
such a thing there would be an interface for it. 

Chris Craddock
Sent from my cell phone
281-770-1950

On Oct 7, 2011, at 12:29 PM, John McKown <joa...@swbell.net> wrote:

> I don't think you can do a "rename" of an existing DD name. However, if
> you have a driver program doing the allocations, perhaps you can change
> it. Instead of allocating, say, SYSUT1. You allocate some unusual name,
> perhaps #SYSUT1$ (just to pick one). Then, when you want to refer to
> that "allocation", do a dynamic allocation DYNALLOC using keys
> 
> DALDDNAM - use the called program's DD name, eg SYSUT1
> DALSTATS - use DISP=OLD (or maybe SHR) since you already have it
> allocated
> DALDCBDD - with #SYSUT1$ to pick up any DCB=
> DALREFD - with #SYSUT1$ to refer back for any attributes
> DALVLSER - with the volumes allocated to SYSUT1, other code will be
> needed to get this information after the original allocation is done.
> 
> I have never done anything like this, so I could be totally off-base on
> the idea. Perhaps others can say more definitively. 
> 
> 
> 
> On Fri, 2011-10-07 at 17:11 +0200, Thomas Berg wrote:
>>> -----Ursprungligt meddelande-----
>>> Från: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] För Walt
>>> Farrell
>>> Skickat: den 7 oktober 2011 17:00
>>> Till: IBM-MAIN@bama.ua.edu
>>> Ämne: Re: Rename of DDname ?
>>> 
>>> On Fri, 7 Oct 2011 15:45:50 +0200, Thomas Berg <thomas.b...@swedbank.se>
>>> wrote:
>>> 
>>>> Are there any way to "rename" a ddname ?  By that I mean leaving the
>>> allocation as such untouched but the "name of the allocation"/DDname is
>>> changed.
>>>> An example of usage is when You have an allocation for application 1 with
>>> DDname 'ABC' for dataset AAA.BBB and want to keep that and then want to
>>> run application 2 which requires the same DDname (for dataset CCC.DDD).
>>>> This is just *one* example.
>>>> 
>>>> Is it a matter of "editing" the TIOT, or ?
>>> 
>>> No, you can't edit the TIOT. How/where are you running these applications?
>> 
>> For the moment the need is in the ISPF/TSO environment.  There is programs 
>> that requires specific DDnames which is common to other programs, both 
>> homegrown and system types, and some of our dialogs need to run several of 
>> these at the same time (in sequence) but I want to preserve some allocations 
>> because of performance issues (e g big temporary datasets that takes a 
>> "long" time to create or that I need to keep the enques for, etc.). 
>> Common system names are such as "SYSUT1", "SYSUT2" etc. 
>> 
>> 
>> 
>> Regards, 
>> Thomas Berg 
>> _________________________________________ 
>> Thomas Berg   Specialist   A M   SWEDBANK 
>> 
>> ----------------------------------------------------------------------
>> 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
> -- 
> John McKown
> Maranatha! <><
> 
> ----------------------------------------------------------------------
> 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

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

Reply via email to