z/OS DFSMSdfp Storage Administration
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Specifying the &SECLABL read-only variable in the ACS routine

z/OS DFSMSdfp Storage Administration
SC23-6860-01

Before you begin: Read-only variables contain data set and system information, and they reflect what is known at the time of the allocation request. You can use read-only variables in comparison operations, but you cannot change their values. To understand how to test ACS routines and use read-only variables, read Testing ACS routines and Writing ACS routines.

Perform the following steps to use the &SECLABL read-only variable in the ACS routine:

  1. Update the storage group ACS routine with the &SECLABL read-only variable. This example assumes that a RACF® security label ALERT is already defined to the system.

    Example:

    PROC &STORGRP
    SELECT
    WHEN (&SECLABL = 'ALERT')
      DO
        SET &STORGRP = 'S1P01'
        WRITE 'ASSIGN DATA SETS WITH SECLABEL ALERT TO STORAGE GROUP: S1P01'
        EXIT CODE(0)
      END
    OTHERWISE
      DO
        SET &STORGRP = 'S1P02'
        WRITE 'ASSIGN DATA SETS WITHOUT SECLABEL ALERT TO STORAGE GROUP: S1P02'
        EXIT CODE(0)
      END
    END
    END

    _______________________________________________________________

  2. Validate the storage group ACS routine.
    1. On the ISMF Primary Option menu, select option 7, Automatic Class Selection.
    2. On the ACS Application Selection panel, select option 3, Validate to validate the ACS routine.
    3. On the Validate ACS Routines or Entire SCDS panel, specify the name of the SCDS where the ACS routine resides.
    4. Specify the ACS routine type, which is SG (storage group).
    5. Specify the name of the listing data set to where the validation results are printed.
    6. Press Enter to validate the storage group ACS routine. On the CDS Application Selection panel, select the Validate option.

    _______________________________________________________________

  3. Test your storage group ACS routines. For more details, see Writing ACS test cases using SECLABEL.

    _______________________________________________________________

  4. Validate the SCDS with the updated storage group ACS routine.

    _______________________________________________________________

  5. Activate the validated SCDS.
    On the CDS Application Selection panel in ISMF, complete one of the following actions:
    • Select the Activate option, or
    • Enter the ACTIVATE operator command on the command line.

      Example: ACTIVATE SCDS dsname

    From the operator console, enter the SETSMS command.

    Example: SETSMS SCDS dsname

    _______________________________________________________________

Now you are ready to use security labels in storage group ACS routines to segregate different types of data.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014