1) We are unable to rename a dataset which says it is in contention with CAMIMGR (MII). How can we free (release) this dataset , and possibly other datasets from contention with CAMIMGR?
2) We have job trying to access a dataset that shows contention with MIM. Why is MIM holding the dataset?
When you see contention with your MIM STC on the same LPAR where you are attempting to access or update a file, it is not a conflict with MIM as such; MIM 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=(qname,dsname)
If you are not sure of the qname needed, you can issue
F MIM, D CONFLICTS.
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.