How To Revoke PRIVPGM Permit in order to change LIBRARY?

Document ID : KB000012219
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

I’m attempting to Revoke an incorrect LIBRARY from the below command that was issued.
How can I Revoke the Library from the Dataset?

TSS PER(XXCTLTPX) DSN(SYS2.CTT.PPPP.MMM) ACC(U) LIBRARY(SYS2.IOA.DDDD.V8) PRIVPGM(IOA123N)

Answer:

The PERMIT needs to be REVOKEd then re-PERMITted with the correction to the LIBRARY keyword.

Example:

 

TSS REVOKE(XXCTLTPX) DSN(SYS2.CTT.PPPP.MMM) ACC(U) LIBRARY(SYS2.IOA.DDDD.V8) PRIVPGM(IOA123N)

TSS PERMIT(XXCTLTPX) DSN(SYS2.CTT.PPPP.MMM) ACC(U) LIBRARY(xxxxxxxx) PRIVPGM(IOA123N)