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


Using the CONTROL statement

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

One way to distinguish an END statement from an END command or subcommand is by coding a CONTROL statement with the END operand. The value you code for the END operand must then be substituted for the END statement anywhere in the CLIST, unless another CONTROL END overrides the value.

For example, if you want to substitute ENDO for the END statement, you can code the following:
CONTROL END(ENDO)
SET COUNTER = 10
DO WHILE &COUNTER GT 0
⋮
  (action)
⋮
  test datapak(newpgm)           /* Issue TSO/E TEST command           */
⋮
    (TEST subcommands)
⋮
  end                            /* Issue END subcommand of TSO/E TEST */
⋮
  (more action)
⋮
 SET COUNTER = &COUNTER - 1      /* Decrease counter by 1              */
ENDO

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014