z/OS TSO/E CLISTs
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


The SELECT statement

z/OS TSO/E CLISTs
SA32-0978-00

In situations where you might want to use multiple IF-THEN-ELSE statements, you can often use a single SELECT statement instead. The SELECT statement allows a CLIST to select actions from a list of possible actions. An action consists of one or more statements or commands. The SELECT statement has the following syntax, ending with the END statement. You can use the SELECT statement with or without the initial test expression.
SELECT [test expression]
  WHEN expression1
⋮
  (action)
⋮
  WHEN expression2
  WHEN expression3

  [OTHERWISE]
⋮
  (action)
⋮
END

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014