EXEC
EXEC calls a REXX exec at a lower level (as a nested exec). All variables for this new exec are kept separate from the higher level exec, which is suspended until the nested exec ends.
Operands
- execid
- is the 1 to 17 character identifier of the exec in the format name.modifier, where name and modifier are each up to 8 characters. If you do not specify modifier, EXEC is assumed.
- args
- is the argument string for the called exec.
Return codes
- n
- A return code that is set by the exit of the called exec. See EXIT.
- 0
- Normal return
- -3
- Exec not found
- -10
- Exec name not specified
- -11
- Invalid exec name
- -12
- GETMAIN error
- -99
- Internal error
Example
'EXEC ABC'This example executes exec ABC.EXEC.
