EXEC command

Use the EXEC command to execute a CLIST or REXX exec.

You can specify the EXEC command or the EXEC subcommand of EDIT and TEST in three ways:
  • Explicit form: Enter EXEC or EX followed by the name of the data set that contains the CLIST or REXX exec. If you need prompting you should invoke EXEC explicitly with the PROMPT option.
  • Implicit form: Do not enter EXEC or EX; enter only the name of the member to be found in a procedure library such as SYSEXEC or SYSPROC. A procedure library consists of partitioned data sets allocated to the specific file (SYSPROC or SYSEXEC) either dynamically by the ALLOCATE command or as part of the LOGON procedure. TSO/E determines if the member name is a system command before it searches the libraries.
  • Extended implicit form: Enter a percent sign followed by the member name. TSO/E only searches the procedure library for the specified name. This form is faster because the system doesn't search for commands.

Some of the commands in a CLIST might have symbolic variables for operands. When you specify the EXEC command, you can supply actual values for the system to use in place of the symbolic variables. In addition, when you invoke a REXX exec you can pass arguments on the EXEC command. Specify the arguments in single quotation marks.