Hitachi

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


$SETSESSION (set session information)

$SETSESSION sets a character string as session information.

Organization of this page

Syntax

$SETSESSION(session-variable-name,character-string)

Values

Status

The following table lists and describes the possible statuses:

Status

Description

NORMAL

Normal end

NODATA

ERROR

Script execution interrupted

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

Legend:

—: Not applicable

Example

The following example sets the value 123456789 into the session variable SID:

[SET_VALUE]
  $SETSESSION('SID','123456789')
 
  VAL = $GETSESSION('SID')
  MSG = 'SID = ' + VAL
  $ECHO(MSG)
Execution result:

SID = 123456789