Setting the condition for valid return codes
Use the following options and arguments to set the condition for valid return codes. After each job step is executed, the system performs the condition test against the return codes from completed job steps. If a job step fails the condition test, the job will be terminated.
Syntax
–n good_rc –c condition- good_rc
- Specifies a comparison value for determining whether the return code from a build run signals success. The –n option works in conjunction with the –c option.
- condition
- Specifies the comparison operator for determining whether the
return code from a build run signals success. The –c option works in conjunction with the –n option.
You can use the following comparison operators:
- LT (less than)
- LE (less than or equal to)
- GT (greater than)
- GE (greater than or equal to)
- EQ (equal to)
- NE (not equal to)
Platforms
z/OS® MVS™, z/OS UNIX® System Services
Examples
Note: The examples in this topic are
for illustrating command syntax. You need to substitute values appropriate
to your site for the command parameters.
rccbuild options | Success | Failure |
---|---|---|
–n 4 –c LT | return code < 4 | return code >= 4 |
–n 4 –c LE | return code <= 4 | return code > 4 |
–n 4 –c GT | return code > 4 | return code <= 4 |