IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

IEHPROGM ENQUEUE OVERRIDE


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Martin Wickenden

New User


Joined: 24 Apr 2018
Posts: 15
Location: USA

PostPosted: Fri May 11, 2018 8:56 pm
Reply with quote

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. icon_biggrin.gif Thanks. Martin
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Moderator


Joined: 14 Mar 2007
Posts: 10712
Location: italy

PostPosted: Fri May 11, 2018 9:15 pm
Reply with quote

look at BYPASSNQ
available here
www.gsf-soft.com/Freeware/
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Tue May 22, 2018 7:01 pm
Reply with quote

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
View user's profile Send private message
Martin Wickenden

New User


Joined: 24 Apr 2018
Posts: 15
Location: USA

PostPosted: Tue May 22, 2018 7:24 pm
Reply with quote

Thanks very much for your assistance with this, I am all set now, Marty icon_biggrin.gif
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 869
Location: The Universe

PostPosted: Wed May 23, 2018 4:55 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts AN OVERRIDE MAY NOT TARGET OVERRIDING... JCL & VSAM 1
No new posts Compare Two datasets and Override Mat... DFSORT/ICETOOL 7
No new posts proc step return code to override in ... JCL & VSAM 3
No new posts Breaking a CICS enqueue? CICS 3
No new posts Can DFSPARM override SORTKEYS paramet... DB2 2
Search our Forums:

Back to Top