EXEC

EXEC executes the exec, then terminates.

Issuing EXEC on the FLST command column

When you type EXEC on the FLST command column, use the following syntax:
Read syntax diagramSkip visual syntax diagram EXEC /parameter
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 PARMS as the argument.

Issuing EXEC from the command line

When you type EXEC from the command line, use the following syntax:
Read syntax diagramSkip visual syntax diagram EXEC fileid1 parameter
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 PARMS as 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