Define the started tasks

The following sample RACF® commands create the shared daemon started task, with a protected user ID (BGZSTCI) and the STCGROUP group assigned to it.

Command Description
SETROPTS GENERIC(STARTED)
SETROPTS CLASSACT(STARTED) RACLIST(STARTED)
SETROPTS GENERIC(FACILITY)
SETROPTS CLASSACT(STARTED) RACLIST(STARTED)
Activate the classes for the started task definitions
ADDGROUP STCGROUP OMVS(AUTOGID) DATA('STARTED TASK GROUP WITH OMVS SEGEMENT') Create a group for the started tasks
ADDUSER BGZSTCI NOPASSWORD DFLTGRP(STCGROUP) OMVS(AUTOUID HOME(/tmp) PROGRAM(/bin/sh)) NAME('SHARED DAEMON') DATA('DEPENDENCY BASED BUILD') Create the user ID for the daemon
RDEFINE STARTED DBB.* STDATA(USER(BGZSTCI) GROUP(STCGROUP) TRUSTED(NO)) DATA('DEPENDENCY BASED BUILD') Define the started task for the daemon
RDEFINE STARTED DBBSTOP.* STDATA(USER(BGZSTCI) GROUP(STCGROUP) TRUSTED(NO)) DATA('DEPENDENCY BASED BUILD STOP') Define the started task to stop the daemon
RDEFINE FACILITY BGZ.DAEMON.BATCH UACC(NONE) DATA('DEPENDENCY BASED BUILD RUN SHARED DAEMON IN BATCH')
PERMIT BGZ.DAEMON.BATCH CLASS(FACILITY) ACCESS(READ) ID(BGZSTCI)
Allow the daemon to run as job or process instead of STC
SETROPTS RACLIST(STARTED) REFRESH
SETROPTS RACLIST(FACILITY) REFRESH