Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide


CMDRC_THRESHOLD_DEFINE parameter (defines a return code threshold for a command)

Organization of this page

Format

#-adsh_conf CMDRC_THRESHOLD_DEFINE command-name threshold

Description

This parameter defines a threshold value for the return code for a command executed from a job definition script. Normal termination will be considered to have occurred whenever the command's return code is equal to or smaller than the specified threshold value. You use this parameter when you want normal termination to be considered to have occurred even though the actual return code of the command was not 0.

If the command terminates by receiving a signal, an error termination will be considered to have occurred regardless of the specification of this parameter.

The CMDRC_THRESHOLD_DEFINE parameter can also be used to change the threshold for a UNIX-compatible command for which a threshold has been defined by specification of ENABLE in the CMDRC_THRESHOLD_USE_PRESET parameter.

Operands

command-name ~<command name>((1 to 255 bytes))

Specifies the name of the command for which the threshold of the return code is to be defined. In Windows, a command name with an extension can also be specified. A command path cannot be specified.

The command types that can be specified are listed below. Other commands are also affected by this parameter if they are executed in a separate process (using a pipe, command substitution, |& or &).

  • External command

  • UNIX-compatible command

  • Shell operation command

  • Shell script

  • Child job

If specification of a command extension is omitted in Windows, commands and batch files having the same name as the specified name become the targets for threshold control regardless of their extension.

To specify a command name containing a space in Windows, enclose the entire command name in double quotation marks (").

threshold ~<integer>((-1 to 255))

Specifies the threshold to be used for determining that the return code represents a normal termination. If the return code is greater than the value specified here, it will be assumed that an error termination has occurred.

If -1 is specified, execution of the command will always result in an error termination.

If 255 is specified, the execution result will always be regarded as a normal termination.

Notes

Example