Authority checking for all packages in a collection
You can perform authority checking on a collection of packages instead of performing authority checking on each package individually.
subsystem-name.collection-ID.package-ID.privilege-nameWhen a Db2 user tries to perform an operation on all packages in a collection, Db2 can pass an asterisk (*) to the RACF access control module in place of package-ID. To ensure consistent results between the RACF access control module and the RACF command processors (SEARCH and RLIST), the asterisk (*) in the resource name should match the asterisk (*) in the profile name.
BIND PACKAGE(DSNTEP2) MEMBER(DSNTEP2) ACT(REP) ISO(CS)
BIND PLAN(DSNTEP42) PKLIST(DSNTEP2.*) ACT(REP) ISO(CS)
RUN PROGRAM(DSNTEP2) PLAN(DSNTEP42) -When Db2 gets to the execution
step, it calls the RACF access control module to
check the user's authority to EXECUTE package DSNTEP2.*,
where the asterisk (*) means all packages
in the collection.
DSN.DSNTEP2.*.EXECUTE (in class MDSNPK)The RACF profile name protecting this resource should contain a single asterisk (*) to match the asterisk (*) in the resource name.