Examples of setting up program access to data sets
z/OS Security Server RACF Security Administrator's Guide
SA23-2289-00
You have a program named PROG1 in library 'APP.LOADLIB' that
users execute in batch, and when using that program you want the users
to have UPDATE access to data set 'ABC.DATA'. Otherwise,
users should have READ access to the data set. Only users in group
GROUPA should have access to PROG1 and 'ABC.DATA'.
You should run in BASIC program security mode. Issue the following
commands.
However, if you have previously
issued SETR WHEN(PROGRAM):
SETR WHEN(PROGRAM) REFRESH
You have a program named PROG2 in library 'APP.LOADLIB' that
users execute in batch, and when using that program you want the users
to have UPDATE access to data set 'ABC.DATA'. Otherwise,
users should have READ access to the data set. Only users in group
GROUPA should have access to PROG2 and 'ABC.DATA'.
You should run in ENHANCED program security mode. Issue the following
commands:
ADDSD 'APP.LOADLIB' UACC(READ)
RDEFINE PROGRAM PROG2 ADDMEM('APP.LOADLIB'//NOPADCHK)
UACC(NONE) APPLDATA('MAIN')