8.105 MSG (Display message on console like VM)

8.105.1 Function

The MSG command is actually a VM CP command. It is used to transmit message text to the virtual
console of other active users.

However, some programmers also use this command as a simplified way to display messages on the
own virtual machine console by using "MSG * <message text>". One program that uses this is the IBM
"System z" port of Solaris which is only capable of running under z/VM.

So basically, all the MSG command does is to display a message on the Hercules console with VM like
headers. Therefore the MSG command is not really intended to be used directly from the Hercules con-
sole as shown in the example below, although it does not hurt doing so.

The MSG command is the same as MESSAGE. See also the MESSAGE and MSGNOH commands in
this manual.

8.105.2 Syntax

Descriptive

parms

Diagram

parms ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ

8.105.3 Parameter

parms

This specifies the required and optional parameters as described in IBM's VM "CP
Commands and Utilities Reference" manual.

8.105.4 Examples

Example 1:

Display a message on the own virtual machine console.

18:24:09 msg * transmitted message to VM console

18:24:09 18:24:09 * MSG FROM HERCULES: transmitted message to VM console

Figure 198: MSG command

8.106 MSGHLD (Display or set timeout of held messages)

8.106.1 Function

The MSGHLD console command is used to display or set the timeout value of held messages. It is also
possible to release all held messages without having to wait for the timeout period to expire.

8.106.2 Syntax

Descriptive

nnn

Diagram

nnn ¬¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ





8.106.3 Parameter

nnn

This value specifies the new timeout value of held messages in seconds.

INFO

Display the current message held time setting.

CLEAR

Release the held messages immediately. The command 'KD' can be used as a
shortcut for 'MSGHLD CLEAR'.

8.106.4 Examples

Example 1:

Set the new timeout interval for held messages to 30 seconds.

HHC00013I Herc command: 'msghld 30'

HHC02204I message hold time set to 30 seconds

Figure 199: MSGHLD command (set new interval)

Previous Page Next Page