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


Boolean expressions

z/OS DFSMSdfp Storage Administration
SC23-6860-01

You can use the following Boolean operators in any ACS routine:
This:
Means this:
AND or &&;
And
OR or |
Or
Expressions in parentheses are processed first. In the following example, the set of OR expressions are processed first, so that
WHEN ((CONDITION 1) OR
      (CONDITION 2) OR
      (CONDITION 3) AND
      (CONDITION 4)) SET ...
is processed as follows:
WHEN
 (CONDITION 1 AND CONDITION 4) OR
 (CONDITION 2 AND CONDITION 4) OR
 (CONDITION 3 AND CONDITION 4) SET ...
If you want the AND expression be processed before OR, the AND expression must be included in a set of parentheses. In the following example, AND is processed first so that
WHEN ((CONDITION 1) OR
       (CONDITION 2) OR
       ((CONDITION 3) AND
       (CONDITION 4))) SET...
is processed as follows:
WHEN ((CONDITION 1) OR
      (CONDITION 2) OR
      (CONDITION 3 AND CONDITION 4)) SET...

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014