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


SET statement

z/OS DFSMSdfp Storage Administration
SC23-6860-01

The SET statement assigns values to the read-write variables. The values can be the names of constructs or RACF® derived defaults (&DEF_DATACLAS, &DEF_STORCLAS, or &DEF_MGMTCLAS). You can assign one name to &DATACLAS, one name to &STORCLAS, and one name to &MGMTCLAS, but you can assign a list of up to 15 names to &STORGRP

The names can be from one to eight characters long, and they must be enclosed in single quotation marks. The individual names belonging to a &STORGRP must be enclosed in single quotation marks and separated by commas. A name must begin with either an alphabetic or national ($, @, #) character, and the remaining characters can be alphabetic, numeric, or national.

In the body of an ACS routine, you can set only the value of the read-write variable identified in the PROC statement. You cannot set a read-write variable equal to another read-write variable, a FILTLIST variable, or a read-only variable (except for the RACF-derived values). For example, the following is not valid:
SET &STORCLAS = &PGM
You can assign a null value to any of the read-write variables except for &STORGRP. You can assign a null value by specifying two single quotation marks with nothing between them ('').
SET read-write variable = value
where:
  • read-write variable is a mandatory value that can be &DATACLAS, &STORCLAS, &MGMTCLAS, or &STORGRP.
  • You can specify EQ in place of the equals sign, =.
  • value can be one name, a null value, a RACF read-only variable name, or a list of names for the storage group ACS routine. Table 1 summarizes the possible assignments of value.
Table 1. Read-Write Variable Assignments
  One Name in Single Quotation Marks Null Value RACF Read-Only Variable Name List of Quoted Names Separated by Commas
Storage group x     x
Management class x x x  
Storage class x x x  
Data class x x x  
SET &STORCLAS EQ 'SCNORM'
SET &STORCLAS = 'SCNORM'
SET &DATACLAS = &DEF_DATACLAS           /* RACF read-only variable */
SET &MGMTCLAS = 'SCRATCH5'
SET &STORGRP = 'SG1','SG2','SG3'      /* list of values          */
SET &DATACLAS = ''                    /* null value assignment   */
You must have RACF installed and ACSDEFAULT(YES) specified in the IGDSMSxx to assign the &DEF_DATACLAS, &DEF_STORCLAS, or &DEF_MGMTCLAS. Otherwise a null value is assigned to a read-write variable.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014