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


&ALLVOL and &ANYVOL functions

z/OS DFSMSdfp Storage Administration
SC23-6860-01

These functions let you compare the volume serial numbers explicitly specified on input with a comparison variable (for example, a FILTLIST variable). The use of &ALLVOL in a comparison expression returns a true value if ALL of the input volsers satisfy the desired condition. The use of &ANYVOL returns a true value if ANY of the input volsers satisfies the desired condition. For example, let IMS101, IMS102, and TSO191 be the input volsers to the routine in Figure 1:

Figure 1. Example of Constraints when Using the &ALLVOL and &ANYVOL Read-Only Variables
PROC STORCLAS

    IF &ALLVOL = IMS* THEN
       (code left out)
    SELECT
      WHEN (&ANYVOL = TSO*)
       (code left out)
    END
END

The IF statement is false because not all volumes match. While IMS101 and IMS102 satisfy the IMS* mask, TSO191 does not.

The WHEN statement is true, because any (at least one) volume does match. While IMS101 and IMS102 fail to satisfy the TSO mask, TSO191 does satisfy the mask.

For a detailed explanation of the IF statement, refer to IF statement.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014