USERVARS—set user variables (used with Allocation)
The USERVARS function enables you to set variables that are not included in the set of variables that is provided by BMC AMI Storage.
The variables that are defined in USERVARS may be subsequently tested and used in filter lists and rule lists for other functions.
The following table describes the SET statement parameters for the USERVARS function that are located in member SMRLSTxx.
SET statement parameters for USERVARS function
Parameter | Description |
|---|---|
USRCn=xxxxxxxx | Character field for a user-specified variable The value of n can be 1-10 (for example USRC1, USRC2, and so on). |
USRNy=nnnnnnnn | Numeric field for a user-specified variable The value of y can be 1-10 (for example USRN1, USRN2, and so on). The value of n cannot exceed 214783647. |
The following example shows how you can use USERVARS to set variables across functions.
Member | Command | Result |
|---|---|---|
SMFUNCxx | SET NAME=USERVARS ACTIVE=YES | Defines and activates the function. |
SMFLSTUV | SET MODE=ACT | Selects the job to test the variables in active mode. |
SMRLSTUV5 | SET USRC1=USERVALU USRN1=100 | Specifies two variables to be set and tested later. |
SET USRC1=USERVAL2 USRN1=200 | Specifies two variables to be set and tested later. | |
SMFLSTDP | SET MODE=ACT | The variables established by the USERVARS function have been set and are used in the filter list for DASDPOOL. |