Chapter 8. Entering Commands from an Exec
This chapter describes how to issue TSO/E commands and other types of
commands from a REXX exec.
Types of Commands
A REXX exec can issue many types of commands. The two main categories of
commands are:
v TSO/E REXX commands - Commands provided with the TSO/E implementation
v Host commands - The commands recognized by the host environment in which
When an exec issues a command, the REXX special variable RC is set to the
return code. An exec can use the return code to determine a course of action within
the exec. Every time a command is issued, RC is set. Thus RC contains the return
code from the most recently issued command.
© Copyright IBM Corp. 1988, 2001
of the language. These commands do REXX-related tasks in an exec, such as:
- Control I/O processing of information to and from data sets (EXECIO)
- Perform data stack services (MAKEBUF, DROPBUF, QBUF, QELEM,
NEWSTACK, DELSTACK, QSTACK)
- Change characteristics that control the execution of an exec (EXECUTIL and
the immediate commands)
- Check for the existence of a host command environment (SUBCOM).
More information about these TSO/E REXX commands appears throughout the
book where the related task is discussed
an exec runs. A REXX exec can issue various types of host commands as
discussed in the remainder of this chapter.
. . . . . . . . 107
. . . . . . . 107
97