Previous Topic: LIBRARY Keyword—Specify Privileged Program LibraryNext Topic: LINKID Keyword—Identify LUs for APPC Conversation


Example: LIBRARY keyword

This example permits use of production data sets, but only if program PN077 is used for access and the program comes from a specific library:

TSS PERMIT(HTEE4) DSNAME(PROD)
                  PRIVPGM(PN077)
                  LIBRARY('PROD.DLIB')

When a program resides in both the LINKLIST and the TASKLIB and both are referenced by a job, two PERMITs are necessary.

This example PERMITs the use of data sets when program PN077 is in the LINKLIST and in a TASK LIBRARY named PROD.DLIB:

TSS PERMIT(user) DSNAME('PROD')
                 ACCESS(READ)
                 PRIVPGM(PN077)
TSS PERMIT(user) DSNAME('PROD')
                 ACCESS(READ)
                 PRIVPGM(PN077)
                 LIBRARY('PROD.DLIB')