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:
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
_______________________________________________________________
_______________________________________________________________
_______________________________________________________________
_______________________________________________________________
Example: ACTIVATE SCDS dsname
Example: SETSMS SCDS dsname
_______________________________________________________________
Now you are ready to use security labels in storage group ACS routines to segregate different types of data.