EXEC
(1) .-----------------------------. >>-EXEC--+-----------------------------+----------------------->< '-REXX_program--+-----------+-' '-arguments-'
Notes:
- If REXX_program is not specified, the last saved copy of the file that is currently being edited is executed.
EXEC executes a REXX program within an editor session.
Operands
- REXX_program
- specifies the REXX program name to execute. If you do not specify a name, the last saved copy of the file that is currently being edited will be executed. If any arguments have been defined using the ARGS command, these will be passed.
- arguments
- specifies the arguments to be passed to the program specified in the REXX_program operand.
Return codes
- n
- specifies the return code set by the exit of the called exec
- 0
- Normal return
- -3
- Exec not found
- -10
- Exec name not specified
- -11
- Invalid exec name
- -12
- GETMAIN error
- -99
- Internal error
Example
'EXEC TEST1.EXEC X Y Z'
This example executes program TEST1.EXEC and passes X, Y, and Z as arguments.
