#-adsh_job_stop command (defines termination conditions for a job)
- Organization of this page
Format
#-adsh_job_stop return-code-definition[,return-code-definition ...]
Description
This command defines conditions to be used to determine whether to terminate the job at the end of a job step. A maximum of 1,023 job termination conditions can be specified.
Arguments
- return-code-definition[,return-code-definition]...
-
Specifies definitions for job step return codes that are to be used to determine whether to terminate the job.
Multiple return code definitions can be specified, delimited by the comma (,), in which case the job will be terminated when any of the definitions is satisfied. You can specify a maximum of eight return code definitions.
- return-code-definition
-
~<unsigned integer>((0 to 255))
-
return-code
Terminate the job when the specified return code is returned.
-
return-code-1:return-code-2
Terminate the job when the return code that is returned is in the range of the specified return codes, inclusive.
-
return-code:
Terminate the job when the return code that is returned is equal to or greater than the specified return code.
-
:return-code
Terminate the job when the return code that is returned is less than the specified return code.
-
:
Do not terminate the job on the basis of the return code that is returned. A syntax error results if you use this format while specifying multiple return code definitions.
-
Return codes
Return code |
Meaning |
---|---|
0 |
Normal termination |
1 |
Error termination |
Notes
-
A parsing error results if this command is used in a job step.
-
Once the job has terminated, no subsequent job definition scripts will be executed, regardless of the value of the run attribute for the subsequent job steps.