Hitachi

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


$ENVIRONMENT (get environment information)

$ENVIRONMENT acquires the environment settings information of the asset management server.

Organization of this page

Syntax

return-value=$ENVIRONMENT(section-name,key-name)

Values

For details about section name and key names, see the JP1/IT Desktop Management 2 - Asset Console Configuration and Administration Guide.

Status

The following table lists and describes the possible statuses:

Status

Description

NORMAL

Normal end

NODATA

The specified section name or key name does not exist.

ERROR

Script execution interrupted

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

Legend:

—: Not applicable

Example

The following example acquires the contract history acquisition setting specified in the environment settings:

[SET_VALUE]
  VAL= $ENVIRONMENT('BASE','CONTRACT_HISTORY')
 
  MSG = 'BASE CONTRACT_HISTORY = ' +VAL
  $ECHO(MSG)
Execution result:

BASE CONTRACT_HISTORY = YES