_halton - UDM Built-in Variable


The _halton built-in variable specifies a UDM return code value that causes UDM to terminate if that value is:

  • Greater than 0
  • Equaled or exceeded by the return code value in the _rc variable

Note

If the _halton value is 0, and the return code in _rc is 0, UDM will not terminate.


Each UDM command has a return code indicating its level of success or failure:

  • 0 / none: Success or no error
  • 4 / warn: Warning has been issued
  • 8 / error: Error has occurred
  • 16 / fatal: Fatal error has occurred

The value of _halton can be set using the set command. You also can use the convenience values of none, warn, error, and fatal (indicating 0, 4, 8, and 16, respectively) to set the value of _halton:


set _halton=error


Note

To use _halton with the _execrc internal variable requires scripting similar to the following example.


exec cmd ...
if $(_execrc) GE $(_halton)
   set _rc=$(_execrc)
   exit
end