Hitachi

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


$FORMATMSG (set a message format)

$FORMATMSG sets the format of a character string that is output to a message.

Organization of this page

Syntax

message=$FORMATMSG(message-text,character-string-1(,character-string-2(,...)))

Values

Status

The following table lists and describes the possible statuses:

Status

Description

NORMAL

Normal end

ERROR

Script execution interrupted

Indicates one of the following:

  • More than 99 arguments were specified.

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

Legend:

—: Not applicable

Example

This example outputs a message with the asset number and the processing inserted:

MSG = $FORMATMSG('Device %2 on asset number %1 failed','1001','deletion')
$ECHO(MSG)
Execution result:

Device deletion on asset number 1001 failed.