Hitachi

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


$EXIT (exit)

$EXIT ends processing on an access definition file.

Organization of this page

Syntax

$EXIT(return-code)

Values

Remarks

Processing is interrupted if the specified value is out of the range that can be specified for return-code.

Example

The following example outputs the number of asset information data items whose status is active (002) or, if none are found, terminates processing with return code 3:

[CLASS_FIND]
  AssetInfo
[FIND_DATA]
  (AssetInfo.AssetStatus = '002')AND
  (AssetInfo.AssetKind = '001')
[GET_VALUE]
  WORK = AssetInfo.AssetNo
 
[SET_VALUE]
  STATUS = $GETSTATUS()
  TOTAL = $DATACOUNT()
[IF]
  STATUS = NORMAL
[THEN]
  [SET_VALUE]
    MSG = 'DataCount : ' +TOTAL
    $ECHO(MSG)
[ELSE]
  [SET_VALUE]
    MSG = 'EXIT : 3'
    $ECHO(MSG)
    $EXIT(3)
[IF_END]
Execution result:

EXIT : 3