86 lines
6.0 KiB
HTML
86 lines
6.0 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="task" />
|
|
<meta name="DC.Title" content="Send messages to a system user" />
|
|
<meta name="abstract" content="Several commands can be used to send messages to system users." />
|
|
<meta name="description" content="Several commands can be used to send messages to system users." />
|
|
<meta name="DC.subject" content="system user, sending messages to, sending, message to system user, message, sending to system user, SNDMSG (Send Message) command, Send Message (SNDMSG) command, command, CL, SNDMSG (Send Message), Send Message (SNDMSG), message queue, sending message to, SNDBRKMSG (Send Break Message) command, Send Break Message (SNDBRKMSG) command, SNDBRKMSG (Send Break Message), Send Break Message (SNDBRKMSG), break message" />
|
|
<meta name="keywords" content="system user, sending messages to, sending, message to system user, message, sending to system user, SNDMSG (Send Message) command, Send Message (SNDMSG) command, command, CL, SNDMSG (Send Message), Send Message (SNDMSG), message queue, sending message to, SNDBRKMSG (Send Break Message) command, Send Break Message (SNDBRKMSG) command, SNDBRKMSG (Send Break Message), Send Break Message (SNDBRKMSG), break message" />
|
|
<meta name="DC.Relation" scheme="URI" content="wmsgs.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="msgcl.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="msgsu" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Send messages to a system user</title>
|
|
</head>
|
|
<body id="msgsu"><a name="msgsu"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Send messages to a system user</h1>
|
|
<div><p>Several commands can be used to send messages to system users.</p>
|
|
<div class="section"> <p> </p>
|
|
<ul><li><span class="cmdname">Send Message (SNDMSG)</span></li>
|
|
<li><span class="cmdname">Send Break Message (SNDBRKMSG)</span></li>
|
|
<li><span class="cmdname">Send Program Message (SNDPGMMSG)</span></li>
|
|
<li><span class="cmdname">Send User Message (SNDUSRMSG)</span></li>
|
|
</ul>
|
|
<p><span class="cmdname">Send Program Message (SNDPGMMSG)</span> and <span class="cmdname">Send
|
|
User Message (SNDUSRMSG)</span> can only be used in batch or interactive
|
|
OPM programs or ILE procedures. These commands cannot be entered on a command
|
|
line. The <span class="cmdname">Send Message (SNDMSG)</span> command sends an informational
|
|
or inquiry message to the system operator message queue (QSYSOPR), a display
|
|
station message queue, or a user message queue. You can send an informational
|
|
message to more than one message queue at a time. But you can send an inquiry
|
|
message to only one message queue at a time. The message is delivered by
|
|
the delivery type specified for the message queue. The message does not interrupt
|
|
the user unless the message queue is in break mode.</p>
|
|
<p>The following <span class="cmdname">Send
|
|
Message (SNDMSG)</span> command is sent by a display station user to the
|
|
system operator: </p>
|
|
<pre>SNDMSG MSG('Mount tape on device TAP1') TOUSR(*SYSOPR)</pre>
|
|
<p>The <span class="cmdname">Send Break Message (SNDBRKMSG)</span> command
|
|
sends an immediate message from a workstation, a program, or a job to one
|
|
or more display stations to be delivered in the break mode regardless of what
|
|
delivery mode the receiver's message queue is set to. This command can be
|
|
used to send a message only to display station message queues. You should
|
|
use the <span class="cmdname">Send Break Message (SNDBRKMSG)</span> command when sending
|
|
any message that requires the immediate attention of a display station user.
|
|
You cannot ensure the message will cause a break, because each job has control
|
|
by using the BRKMSG parameter on the <span class="cmdname">Change Job (CHGJOB)</span> command.</p>
|
|
<p>If
|
|
you send an inquiry message, you can specify that the reply be sent to a message
|
|
queue other than that of your display station.</p>
|
|
<p>The following <span class="cmdname">Send
|
|
Break Message (SNDBRKMSG)</span> command is sent by the system operator
|
|
to all the display station message queues: </p>
|
|
<pre>SNDBRKMSG MSG('System going down in 15 minutes')
|
|
TOMSGQ(*ALLWS)</pre>
|
|
<p>The disadvantage of sending this message is that it is sent
|
|
to <em>all</em> users, not just those users who are active at the time the message
|
|
is sent.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="wmsgs.htm" title="This discusses some of the ways that messages can be used to communicate between users and programs.">Messages</a></div>
|
|
</div>
|
|
<div class="reltasks"><strong>Related tasks</strong><br />
|
|
<div><a href="msgcl.htm" title="Various message types are described in this topic. Use the Send Program Message (SNDPGMMSG) command or the Send User Message (SNDUSRMSG) command to send a message from a CL procedure or program.">Send messages from a CL program</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |