We are unable to rename a dataset which says it is in contention with CAMIMGR. How can we free this dataset , and possibly other datasets from contention with CAMIMGR?
When you see contention with CAMIMGR on the same LPAR where you are attempting to make changes, it is not a conflict with CAMIMGR as such; MIMGR is holding a local ENQ to prevent changes due to contention with a different system.
The D ENQR command can be used to determine who is holding the dataset to be renamed.
F MIM,D ENQR=(SYSDSN,ZS.PROD.DIOA.LOAD)
The command may need to be entered on multiple systems to find the true non-MIM owner.
F MIM,D ENQR=(SYSDSN,SYS1.PROD.LOAD)
MIM0067I Command DISPLAY 211
MIM1091I GDIF ENQRESOURCE DISPLAY
QNAME RNAME Requestor Type
SYSDSN SYS1.PROD.LOAD S=PRD1 HOLDS SHR
S=TST1 HOLDS SHR
The display results show that two different users on system PRD1 and TST1 own the enq which is preventing the rename.
The command needs to be entered again on PRD1 and TST1 to find the true owner.