8.60 EXEC (Execute a REXX script)
8.60.1 Function
The EXEC console command executes a Rexx script. EXEC invokes Rexx within the Hercules process to
execute the Rexx script and commands will be executed synchronously within the Hercules process.
The EXEC command is only available if Hercules is built with Rexx support (see the Hercules “Installation
Guide” for details on how to activate Rexx support and the Hercules “General Information” manual for
more details about the Rexx support). Chapter
formation about using Rexx with Hercules.
8.60.2 Syntax
Descriptive
[ ] rexx [argument [argument ...]]
Diagram
rexx ¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬§¬¬¬¬ÊÍ
«
~¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬®
¬¬ ¬¬
¬¬ ¬
argument ¬¬
8.60.3 Parameter
COMMAND
Specifies command style for passing arguments to a Rexx script. ‘COMMAND’ may
be abbreviated as ‘COM’. If not specified then the argument passing style is deter-
mined by the Rexx mode settings (form the REXX system parameter or console
command).
SUBROUTINE
Specifies subroutine style for passing arguments to a Rexx script. ‘SUBROUTINE’
may be abbreviated as ‘SUB’. If not specified then the argument passing style is
determined by the Rexx mode settings (form the REXX system parameter or con-
sole command).
rexx
This is the name (and optionally the path) of a Rexx script.
If the name of the Rexx to be executed is given without a pathname, the script is
searched within the path that has been defined with the REXX command or the de-
fault path if no path has been set for the Rexx environment (see the REXX console
command for more details).
If a path is specified in the EXEC command, then the Rexx will not be searched in
the defined path of the Rexx environment.
argument
These are the arguments (separated by spaces) to be passed to the Rexx script.