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:
- 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
_______________________________________________________________
- Validate the storage group ACS routine.
- On the ISMF Primary Option menu, select option 7, Automatic Class
Selection.
- On the ACS Application Selection panel, select option 3, Validate
to validate the ACS routine.
- On the Validate ACS Routines or Entire SCDS panel, specify the
name of the SCDS where the ACS routine resides.
- Specify the ACS routine type, which is SG (storage
group).
- Specify the name of the listing data set to where the validation
results are printed.
- Press Enter to validate the storage group ACS routine. On the
CDS Application Selection panel, select the Validate option.
_______________________________________________________________
- Test your storage group ACS routines. For more details, see Writing ACS test cases using SECLABEL.
_______________________________________________________________
- Validate the SCDS with the updated storage group ACS routine.
_______________________________________________________________
- Activate the validated SCDS.
On the CDS Application Selection
panel in ISMF, complete one of the following actions:
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.