Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 - Asset Console Creating an Access Definition File Guide


$SETOPTION (set run options)

$SETOPTION sets options so that script processing will not be interrupted even if an error occurs on the script.

Organization of this page

Syntax

$SETOPTION('option-name',parameter)

Values

Status

The following table lists and describes the possible statuses:

Status

Description

NORMAL

Normal end

ERROR

An invalid value was specified for parameter.

FLUSH

Error occurred, but processing continued (when 1 is specified in parameter).

Script execution interrupted

Indicates one of the following:

  • An invalid option was specified.

  • An invalid argument was specified, or an error other than the above occurred.

Example

If asset number 1000000001 is already in use, this example outputs the contents of MSG to the log file without terminating the script:

[SET_VALUE]
  $SETOPTION('ErrorFlush', 1)
[APPEND]
  AssetInfo
[DATA]
  AssetInfo.AssetID = 1000000001
  AssetInfo.AssetNo = 1000000001
[SET_VALUE]
  $LOGMSG('E', MSG)