Previous Topic: PRIVPGM Keyword—Specify Programs in ControlNext Topic: PROCNAME Keyword—Define STC Procedure


Examples: PRIVPGM keyword

This example permits access to SMF data sets SYS1.MANX and SYS1.MANY specifically through a link‑listed program:

TSS PERMIT(SYS92) ACCESS(CONTROL)
                  DSNAME(SYS1.MAN+)
                  PRIVPGM(SMFMNGR)

This example permits access to a personnel data set, but only if program PRSP60 is used and is loaded from a specific library:

TSS PERMIT(PAY100K) DSNAME(PERS.*.MASTER)
                    PRIVPGM(PRSP60)
                    LIBRARY(PERS.LOADLIB)

This example permits access to the same personnel data set, but allow any program beginning with the characters PRSP:

TSS PERMIT(PAY100K) DSNAME(PERS.*.MASTER)
                    PRIVPGM(PRSP(G))

This example permits access to a CICS file, but only if the CICS program in control is PCC505:

TSS PERMIT(CLK505P) FCT(PARTS)
                    PRIVPGM(PCC505)