EXEC statement

Use an EXEC statement to define a new job step and specify the name of the program to run.

Note:

Syntax

//new_stepname EXEC {PGM=prog_name}[PARM='parm_string'][COND=((code,op[,stepname])[,(code,op[,stepname])…])]
new_stepname
The name of the job step you are defining.
prog_name
The name of a program to be executed.
parm_string
The parameter string passed to the invoked program.
code
The value to test against the return code from a previous step.
op
The comparison operator . It can be EQ, NE, LE, GE, LT, or GT.
stepname
The name of the step that issues the return code.
Note: In the COND clause, you can omit the outer parentheses if you code only one return code test. If you omit stepname, the code you specify is compared to the return codes from all previous steps. If a test specifies a previous step that was bypassed, the system evaluates the COND parameter as false and executes the step.