LOGMSG

Use

LOGMSG ( <command interface> ).

LOGMSG ( <command interface> , <target system> ).

The LOGMSG command reads a message from table T100 in the target system, and enters the message in the log. You can enter values for the first four variable parts of a message.

You specify the message in <command interface>. The contents of the fields can be fixed values or parameters.

Fields of the command interface:

Field

Description

MSGTYP

Message type. For example, 'I', 'S', 'W', 'A', or 'E'.

MSGID

Message ID (column ARBGB of T100).

MSGNR

Message number (column MSGNR of T100).

MSGV1

First variable part of message.

MSGV2

Second variable part of message.

MSGV3

Third variable part of message.

MSGV4

Fourth variable part of message.

Table T100 is looked up using the values from MSGID and MSGNR.

The message type determines whether the command causes the script to fail. Types I (information), S (success), and W (warning) do not lead to the script failing. Neither do an initial value, space, or 0 (zero). All other values including the message types A (terminate) and E (error) cause the script to fail.

If the LOGMSG command is inside a MESSAGE…ENDMESSAGE block, the message is treated in the same way as a message given out by SETGUI, TCD, and FUN commands.