ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/dspmsg.htm

388 lines
14 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Display Messages (DSPMSG)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="DSPMSG.Top_Of_Page"></a>
<h2>Display Messages (DSPMSG)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#DSPMSG.PARAMETERS.TABLE">Parameters</a><br>
<a href="#DSPMSG.COMMAND.EXAMPLES">Examples</a><br>
<a href="#DSPMSG.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="DSPMSG"></a>
<p>The Display Messages (DSPMSG) command is used by the display station user to show the messages received at the specified message queue. If the message queue is not allocated to the job in which this command is entered or to any other job, it is implicitly allocated by this command for the duration of the command. When the messages are shown, options are also shown that allow the user to either remove one or more messages from the queue or to enter a reply to each inquiry message.
</p>
<p>
<b>Note: </b>Refer to the section entitled "Handling Messages" in the Basic System Operation information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter for a description of how to print a single message description or a group of message descriptions.
</p>
<p><b>Restrictions:</b>
</p>
<ol>
<li>DSPMSG cannot be specified when another job has already allocated the message queue by specifying the ALCOBJ command operating in the *EXCL lock state.
</li>
<li>The DSPMSG command allows the user to see, but not remove, messages for the job when the message queue is in the *BREAK or *NOTIFY mode for another job.
</li>
<li>When the message queue is in the *BREAK mode for another job, the break handling program for the message queue determines whether the user is allowed to respond to inquiry messages. If PGM(*DSPMSG) is specified, the user can reply to inquiry messages, but if PGM(user-program) is specified, no reply to inquiry messages is allowed.
</li>
<li>If multiple jobs show the same inquiry message, and all jobs reply to the message, only the first reply to the message is valid. Subsequent replies from other jobs cause error messages to be issued.
</li>
</ol>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPMSG.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="DSPMSG.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#DSPMSG.MSGQ"><b>MSGQ</b></a></td>
<td valign="top">Message queue</td>
<td valign="top">Single values: <b><u>*WRKUSR</u></b>, *SYSOPR, *USRPRF, *WRKSTN<br>Other values: <i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Message queue</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top"><a href="#DSPMSG.OUTPUT"><b>OUTPUT</b></a></td>
<td valign="top">Output</td>
<td valign="top"><b><u>*</u></b>, *PRINT, *PRTWRAP</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#DSPMSG.MSGTYPE"><b>MSGTYPE</b></a></td>
<td valign="top">Message type</td>
<td valign="top"><b><u>*ALL</u></b>, *INFO, *INQ, *COPY</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#DSPMSG.START"><b>START</b></a></td>
<td valign="top">Messages to display first</td>
<td valign="top"><b><u>*LAST</u></b>, *FIRST</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#DSPMSG.SEV"><b>SEV</b></a></td>
<td valign="top">Severity code filter</td>
<td valign="top">0-99, <b><u>0</u></b>, *MSGQ</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#DSPMSG.ASTLVL"><b>ASTLVL</b></a></td>
<td valign="top">Assistance level</td>
<td valign="top"><b><u>*PRV</u></b>, *USRPRF, *BASIC, *INTERMED</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#DSPMSG.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="DSPMSG.MSGQ"></a>
<h3>Message queue (MSGQ)</h3>
<p>Specifies the message queue from which messages are shown.
</p>
<p><b>Note:</b> The special values *WRKSTN, *WRKUSR, *USRPRF, and *SYSOPR should be specified for this parameter only when you are in an interactive job.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*WRKUSR</u></b></dt>
<dd>Messages are shown from the work station's message queue if there are any messages on it. After the user exits that display, messages are shown from the current user's user profile message queue. If there are no messages on the work station's message queue, only the messages from the user profile message queue are shown.
</dd>
<dt><b>*SYSOPR</b></dt>
<dd>Messages from the system operator message queue (QSYSOPR) are shown.
</dd>
<dt><b>*WRKSTN</b></dt>
<dd>Messages are shown from the work station's own message queue.
</dd>
<dt><b>*USRPRF</b></dt>
<dd>Messages from the current user profile message queue are shown.
</dd>
</dl>
<p><b>Qualifier 1: Message queue</b>
</p>
<dl>
<dt><b><i>message-queue-name</i></b></dt>
<dd>Specify the name of the message queue from which messages are shown.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the library list for the current thread are searched until the first match is found.
</dd>
</dl>
<dl>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the job is used to locate the message queue. If no current library entry exists in the library list, QGPL is used.
</dd>
<dt><b><i>library-name</i></b></dt>
<dd>Specify the library where the message queue is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPMSG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPMSG.OUTPUT"></a>
<h3>Output (OUTPUT)</h3>
<p>Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
</p>
<dl>
<dt><b><u>*</u></b></dt>
<dd>The output is shown (if requested by an interactive job) or printed with the job's spooled output (if requested by a batch job). Immediate messages can be 512 bytes long.
</dd>
</dl>
<dl>
<dt><b>*PRINT</b></dt>
<dd>The output is printed with the job's spooled output.
</dd>
</dl>
<dl>
<dt><b>*PRTWRAP</b></dt>
<dd>The output is printed with the job's spooled output without truncation, compared to the *PRINT value that truncates the message text to one line in the spooled output.
</dd>
</dl>
<p>When the output is printed, two or more lines are printed for each message. The last line contains the following information:
</p>
<ul>
<li>Qualified job name of the job that sent the message. This consists of the following three fields:
<ul>
<li>Job name
</li>
<li>User name
</li>
<li>Job number
</li>
</ul>
</li>
<li>Name of the program that sent the message
</li>
<li>Instruction number in program that sent the message. For non-program message queues this is always zeroes.
</li>
<li>The date and time the message was sent.
</li>
<li>The name of the user profile that the thread was running under when the message was sent.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPMSG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPMSG.MSGTYPE"></a>
<h3>Message type (MSGTYPE)</h3>
<p>Specifies the type of messages in the message queue that are shown.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>All messages that are in the message queue are shown.
</dd>
<dt><b>*INFO</b></dt>
<dd>Only informational messages (those not requiring a reply) are shown.
</dd>
<dt><b>*INQ</b></dt>
<dd>Only inquiry messages (those requiring a reply) are shown.
</dd>
<dt><b>*COPY</b></dt>
<dd>Copies of the inquiry messages that were sent to other message queues and still require replies are shown.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPMSG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPMSG.START"></a>
<h3>Messages to display first (START)</h3>
<p>Specifies, whether the newest messages or the oldest messages in the message queue are shown first. The display station user can roll the display up or down to see other messages if the message list occupies more than one display screen.
</p>
<dl>
<dt><b><u>*LAST</u></b></dt>
<dd>If the intermediate view (Display Message) is displayed, the last (newest) message on the message queue is shown on the bottom line of the display.
<p>If the Basic view (Work with Messages) is displayed, the last (newest) message on the MSGQ is shown on the top line of the display. The display station user can press the Roll Up key to show older messages.
</p>
</dd>
<dt><b>*FIRST</b></dt>
<dd>If the intermediate view (Display Message) is displayed, the first (oldest) message on the message queue is shown on the top line of the display.
<p>If the basic view (Work with Messages) is displayed the first (oldest) message on the message queue is shown on the bottom of the display. The display station user can press the Roll Down key to show newer messages.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPMSG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPMSG.SEV"></a>
<h3>Severity code filter (SEV)</h3>
<p>Specifies the lowest severity level that a message can have and still be delivered to a user in break or notify mode. Messages arriving at the message queue whose severities are lower than that specified here do not interrupt the job or turn on the message-waiting light; they are held in the queue until they are displayed by the Display Message (DSPMSG) command.
</p>
<dl>
<dt><b><u>00</u></b></dt>
<dd>All messages in the specified message queue are shown.
</dd>
<dt><b>*MSGQ</b></dt>
<dd>All messages having a severity code greater than or equal to the severity code specified for the message queue are shown.
</dd>
<dt><b><i>severity-code</i></b></dt>
<dd>Specify a value, 00 through 99, that specifies the lowest severity code that a message can have and still be shown.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPMSG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPMSG.ASTLVL"></a>
<h3>Assistance level (ASTLVL)</h3>
<p>Specifies which user interface to display.
</p>
<dl>
<dt><b><u>*PRV</u></b></dt>
<dd>The previous user interface used is displayed.
</dd>
<dt><b>*USRPRF</b></dt>
<dd>The user interface stored in the current user profile is used.
</dd>
</dl>
<dl>
<dt><b>*BASIC</b></dt>
<dd>The Operational Assistant user interface is used.
</dd>
</dl>
<p>
<b>Note: </b>This user interface separates messages into two categories: (1) messages needing a reply and (2) messages not needing a reply. New messages are shown at the top of each list.
</p>
<dl>
<dt><b>*INTERMED</b></dt>
<dd>The system user interface is used.
</dd>
</dl>
<p>
<b>Note: </b>The DSPMSG command online help information assumes the *INTERMED user interface is shown. If the *BASIC user interface is shown, see the online help information for the Work with Messages (WRKMSG) command.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPMSG.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="DSPMSG.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Displaying Messages From Work Station Message Queue and User Profile Message Queue</b>
</p>
<p>
<pre>
DSPMSG
</pre>
</p>
<p>This command displays messages in the requester's work station message queue followed by the user profile message queue. If there are no messages in the work station queue, the user profile message queue is shown immediately.
</p>
<p><b>Example 2: Displaying Informational Messages</b>
</p>
<p>
<pre>
DSPMSG MSGQ(SMITH) MSGTYPE(*INFO)
</pre>
</p>
<p>This command displays, at the requester's work station, any informational messages in the message queue named SMITH.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPMSG.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="DSPMSG.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF2203</b></dt>
<dd>User profile &amp;1 not correct.
</dd>
<dt><b>CPF2204</b></dt>
<dd>User profile &amp;1 not found.
</dd>
<dt><b>CPF2213</b></dt>
<dd>Not able to allocate user profile &amp;1.
</dd>
<dt><b>CPF2217</b></dt>
<dd>Not authorized to user profile &amp;1.
</dd>
<dt><b>CPF2225</b></dt>
<dd>Not able to allocate internal system object.
</dd>
<dt><b>CPF2401</b></dt>
<dd>Not authorized to library &amp;1.
</dd>
<dt><b>CPF2403</b></dt>
<dd>Message queue &amp;1 in &amp;2 not found.
</dd>
<dt><b>CPF2408</b></dt>
<dd>Not authorized to message queue &amp;1.
</dd>
<dt><b>CPF2433</b></dt>
<dd>Function not allowed for system log message queue &amp;1.
</dd>
<dt><b>CPF2450</b></dt>
<dd>Work station message queue &amp;1 not allocated to job.
</dd>
<dt><b>CPF2451</b></dt>
<dd>Message queue &amp;1 is allocated to another job.
</dd>
<dt><b>CPF2477</b></dt>
<dd>Message queue &amp;1 currently in use.
</dd>
<dt><b>CPF2513</b></dt>
<dd>Message queue &amp;1 cannot be displayed.
</dd>
<dt><b>CPF2537</b></dt>
<dd>Too many records written to file &amp;2 in &amp;3.
</dd>
<dt><b>CPF8127</b></dt>
<dd>&amp;8 damage on message queue &amp;4 in &amp;9. VLIC log-&amp;7.
</dd>
<dt><b>CPF8176</b></dt>
<dd>Message queue for device description &amp;4 damaged.
</dd>
<dt><b>CPF9830</b></dt>
<dd>Cannot assign library &amp;1.
</dd>
<dt><b>CPF9845</b></dt>
<dd>Error occurred while opening file &amp;1.
</dd>
<dt><b>CPF9846</b></dt>
<dd>Error while processing file &amp;1 in library &amp;2.
</dd>
<dt><b>CPF9847</b></dt>
<dd>Error occurred while closing file &amp;1 in library &amp;2.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPMSG.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>