M Command - Network Message

Use the M command to send a message to one or more network nodes.
spool
Use the M command to send a message to one or more network nodes.
This command has the following format:
M,{nodename | G=groupnumber | *ALL | *O},'msg'
  • nodename
    Specifies the name of an active display node or communication channel which is to receive the message.
  • G=
    Specifies a valid network number. If the keyword sequence G=groupnumber is specified, the message is sent to all active display nodes and communication channels in the specified network group.
  • *ALL
    Specifies that the message is sent to all active display nodes and communication channels. Only users with the EXCMD attribute or AUTH=2 can use this.
  • *O
    Specifies that the message is sent to the MVS system console and all other ESF system operators. This includes communication channels with system operator authorization.
  • ‘msg’
    Specifies the actual message to be sent. The actual message must follow the message destination specification, and it must be enclosed in single quotes if it contains blanks or quotes. If the message itself contains single quotes, they must be specified as two single quotes.
Examples
This example sends a message to network node RTEST001.
M,RTEST001,'PLEASE LOGOFF - IT'S LUNCH TIME'
This example sends a message to all active sessions.
M,*ALL,'PLEASE LOGOFF - ESF SHUTDOWN IN 5 MIN'