EXEC
EXEC executes the exec, then terminates.
Issuing EXEC on the FLST command column
- Operands
-
- parameter
- specifies the parameters passed to the exec as arguments.
- Example
-
'EXEC / PARMS'This example, executed on the command column next to TEST3.EXEC, executes exec TEST3.EXEC and passes
PARMSas the argument.
Issuing EXEC from the command line
- Operands
-
- fileid
- Specifies the file ID of the file the command acts on.
- parameter
- Specifies the parameters passed to the exec as arguments.
- Example
-
'EXEC TEST3 PARMS'This example executes exec TEST3.EXEC and passes
PARMSas the argument.
Return codes
- n
- The 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
