5.8.9 Job cancellation by the standard shell commands
When a standard shell command is executed, job execution might be canceled depending on the type of standard shell command and the execution result of the standard shell command. If this happens, the KNAX6584-I message is issued and the subsequent job steps and job definition scripts are not executed. Also, the job steps whose run attribute is bnormal or always are not executed.
In this case, the specification of the #-adsh_rc_ignore command and the successRC attribute of the #-adsh_step_start command do not take effect on the executed commands.
- Organization of this subsection
(1) Executing a command that immediately terminates a job definition script
If a standard shell command that immediately terminates a job definition script is executed, job execution is canceled. The following commands immediately terminate a job definition script:
-
exit command
-
return command#
-
exec command with an executable command specified in its argument
- #
-
A job definition script is not terminated in the following cases:
-
The command was executed within a function.
-
The command was executed within an external script.
-
(2) Unresumable errors
If a standard shell command is executed, an error (such as a syntax error) that disables operation of the job definition script itself might occur. If this happens, job execution is canceled. Syntax errors occur in the following cases:
-
Executing the unset command with no argument specified
-
Specifying a character string in the argument of the return command that is specified outside the function as well as outside an external script#
-
In the Windows edition, executing an unsupported conditional expression while ERR is set in the UNSUPPORT_TEST parameter
- #
-
Job execution is not cancelled in the following cases:
-
The command was executed within a function.
-
The command was executed within an external script.
-