Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Compound SELECT z/OS TSO/E CLISTs SA32-0978-00 |
|
A compound SELECT statement includes an initial test expression. The CLIST evaluates the test expression and compares its value to those of the WHEN expressions. In a compound SELECT statement, a WHEN expression can contain multiple expressions separated by the logical operator | (OR). WHEN expressions can also include ranges of values, represented by a colon (:) between the lowest and highest values of the range. For example, 3:5 represents 3, 4, and 5. When a test expression matches a value or falls within a range of values in a WHEN expression, the CLIST performs the associated action and passes control to the END statement. If no matches are found, the CLIST performs the action on the OTHERWISE clause, if any, or passes control to the END statement. >>-+--------+--SELECT--test_expression--------------------------> '-label:-' .-----------------------------------------------------------. V | >----WHEN--(--expression--+-------------------+--)--+--------+-+--> '-+-:--+-expression-' '-action-' +-|--+ '-OR-' >--+-------------------+--+--------+--END---------------------->< '-OTHERWISE--action-' '-label:-'
|
Copyright IBM Corporation 1990, 2014
|