View previous topic :: View next topic
|
Author |
Message |
Martin Wickenden
New User
Joined: 24 Apr 2018 Posts: 15 Location: USA
|
|
|
|
I am trying to rename many datasets on SYSRES volume so that I can delete them. The datasets are enqueued as they are being used by another SYSRES volume for the active operating system. I am given the ability to override the enqueue when I rename them in ISPF. But I can't do this using IEHPROGM in batch. Does anyone know how to do this, I think there was a way but I have forgotten. Thanks. Martin |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
Back to top |
|
|
nevilh
Active User
Joined: 01 Sep 2006 Posts: 262
|
|
|
|
The best way to do this is via a RACF Profile.
In general, you cannot rename a data set whose name is the same as any data set that is allocated to another address space in the same system or in the scope of the SYSDSN enqueue. The system bypasses this restriction if all of the following are true:
•Your program sets on a certain bit in the CAMLST macro expansion. You can code this instruction: OI listname+2,X'10'.
•You have at least read authority to the RACF® facility class named STGADMIN.DPDSRN.olddsname, where olddsname is up to 23 characters of the existing data set name. You can use a generic class name such as STGADMIN.DPDSRN.SYS2.*. IBM® recommends that no one have authority to STGADMIN.DPDSRN.* because it is too broad.
•The data set is not SMS-managed.
If you cannot do this IBM used to supply a modified Version of IEHPROGM called SYSIEH that would do this. |
|
Back to top |
|
|
Martin Wickenden
New User
Joined: 24 Apr 2018 Posts: 15 Location: USA
|
|
|
|
Thanks very much for your assistance with this, I am all set now, Marty |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
nevilh wrote: |
The best way to do this is via a RACF Profile. |
What profile?
nevilh wrote: |
The system bypasses this restriction if all of the following are true:
•Your program sets on a certain bit in the CAMLST macro expansion. You can code this instruction: OI listname+2,X'10'.
•You have at least read authority to the RACF® facility class named STGADMIN.DPDSRN.olddsname, where olddsname is up to 23 characters of the existing data set name. You can use a generic class name such as STGADMIN.DPDSRN.SYS2.*. IBM® recommends that no one have authority to STGADMIN.DPDSRN.* because it is too broad.
•The data set is not SMS-managed. |
This is documented in DFSMS Advanced Services. The only problem is most of us are not Assembler programmers. By the way DFSMS Advanced Services offers a viable alternative, though you still need the STGADMIN profile, though it is buried deep in the manual. |
|
Back to top |
|
|
|