ibm-information-center/dist/eclipse/plugins/i5OS.ic.apis_5.4.0.1/mh1.htm

117 lines
8.8 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
<title>Message Handling APIs</title>
<!-- 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. -->
<!-- Change History: -->
<!-- YYMMDD USERID Change description -->
<!-- MH1TEMP SCRIPT A converted by B2H R4.1 (346) (CMS) by HOLTJM at -->
<!-- RCHVMW2 on 26 Jan 1999 at 10:37:34 -->
<!-- End Header Records -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
<!-- Begin Header Records ========================================== -->
</head>
<body>
<!-- File restructured for V5R2 -->
<!-- 031111 JETAYLOR replaced API and/or Exit listings with -->
<!-- pagegenerator output from javascript array -->
<!--End Header Records -->
<!-- Java sync-link -->
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
</script>
<h2>Message Handling APIs</h2>
<p>The Message Handling APIs let your applications work with iSeries<SUP>(TM)</SUP> messages.
They allow you to do the following:</p>
<ul>
<li>Send messages to users or programs</li>
<li>Receive messages from a message queue</li>
<li>Handle errors</li>
<li>Return message and message queue information</li>
<li>Return message description and message file information</li>
</ul>
<p>Before using the message handling APIs, read the following material:</p>
<ul>
<li><a href="term.htm">Message Handling Terms and Concepts</a>. This section
briefly describes the elements of iSeries messages and message handling.</li>
<li><a href="../rbam6/clpro.htm">CL Programming</a> topic.
For complete background information, see the sections that discuss defining and
working with messages.</li>
</ul>
<p>The Message Handling APIs are:</p>
<!-- ***** NOTE ***** Do not manually update text or links in this section. -->
<!-- Updates made in this section *will* be overlaid by automated tools -->
<!-- Notify User Technologies of needed updates to be made in XML for API finder.-->
<!--***************API BEGIN PASTE***************-->
<ul>
<li><A HREF="QMHCHGEM.htm">Change Exception Message</A> (QMHCHGEM) changes an exception message on a call message queue. This API allows the current program to perform a variety of actions on an exception message that was sent to its caller, a previous caller, or itself.</li>
<li><A HREF="QMHCTLJL.htm">Control Job Log Output</A> (QMHCTLJL) controls the production of a job log when the related job ends or when the job message queue becomes full and the print-wrap option is in effect for the job.</li>
<li><A HREF="QMHLJOBL.htm">List Job Log Messages</A> (QMHLJOBL) lists messages from the job message queue of a job. This function gets the requested message information and returns it in a user space in the format specified in the parameter list.</li>
<li><A HREF="QMHLSTM.htm">List Nonprogram Messages</A> (QMHLSTM) lists messages from one or two nonprogram message queues. This function gets the requested message information and returns it in a user space in the format specified in the parameter list.</li>
<li><A HREF="qmhmovpm.htm">Move Program Messages</A> (QMHMOVPM) moves messages from one call message queue to the message queue of an earlier call stack entry in the call stack. This is especially useful for error handling.</li>
<li><A HREF="QGYOLJBL.htm">Open List of Job Log Messages</A> (QGYOLJBL) lists messages from a job log. Returned messages are sorted by their sending date and time unless the message being listed is a reply message to an inquiry, a sender's copy, or a notify type of message.</li>
<li><A HREF="QGYOLMSG.htm">Open List of Messages</A> (QGYOLMSG) provides information on messages for the current user, a specific user, or one specific nonprogram message queue.</li>
<li><A HREF="QMHPRMM.htm">Promote Message</A> (QMHPRMM) promotes an escape or status message that was sent to a call stack entry. That is, the message is handled and replaced with a new escape or status message. You may promote an escape message to another escape message or to a status message. You may promote a status message to an escape message or to another status message.</li>
<li><A HREF="Qmhrcvm.htm">Receive Nonprogram Message</A> (QMHRCVM) receives a message from a nonprogram message queue, providing information about the sender of the message as well as the message itself. This API is similar in function to the Receive Message (RCVMSG) command with the MSGQ parameter.</li>
<li><A HREF="QMHRCVPM.htm">Receive Program Message</A> (QMHRCVPM) receives a message from a call message queue, and provides information about the sender of the message as well as the message itself. This API is similar in function to the Receive Message (RCVMSG) command with the PGMQ parameter.</li>
<li><A HREF="QMHRMVM.htm">Remove Nonprogram Messages</A> (QMHRMVM) removes messages from nonprogram message queues. This API is similar in function to the Remove Message (RMVMSG) command with the MSGQ parameter.</li>
<li><A HREF="QMHRMVPM.htm">Remove Program Messages</A> (QMHRMVPM) removes messages from call message queues. This API is similar in function to the Remove Message (RMVMSG) command with the PGMQ parameter.</li>
<li><A HREF="QMHRSNEM.htm">Resend Escape Message</A> (QMHRSNEM) resends an escape message from one call message queue to the message queue of the previous call stack entry in the call stack.</li>
<li><A HREF="QMHRTVM.htm">Retrieve Message</A> (QMHRTVM) retrieves the message text and other elements of a predefined message stored in a message file on your system. This API is similar to the Retrieve Message (RTVMSG) command.</li>
<li><A HREF="QMHRMFAT.htm">Retrieve Message File Attributes</A> (QMHRMFAT) retrieves information about the attributes of a message file.</li>
<li><A HREF="QMHRMQAT.htm">Retrieve Nonprogram Message Queue Attributes</A> (QMHRMQAT) provides information about the attributes of a nonprogram message queue.</li>
<li><A HREF="QMHRTVRQ.htm">Retrieve Request Message</A> (QMHRTVRQ) retrieves request messages from the current job's call message queue.</li>
<li><A HREF="QMHSNDBM.htm">Send Break Message</A> (QMHSNDBM) sends a message to a work station for immediate display, interrupting the work station user's task. You can use break messages to warn users of impending system outages and the like. This API is similar in function to the Send Break Message (SNDBRKMSG) command.</li>
<li><A HREF="QMHSNDM.htm">Send Nonprogram Message</A> (QMHSNDM) sends a message to a system user or a message queue that is not associated with a specific program. This API is similar in function to the Send Program Message (SNDPGMMSG) command with the TOMSGQ parameter.</li>
<li><A HREF="QMHSNDPM.htm">Send Program Message</A> (QMHSNDPM) sends a message to the message queue of a call stack entry in the call stack. This API is similar in function to the Send Program Message (SNDPGMMSG) command with the TOPGMQ parameter.</li>
<li><A HREF="QMHSNDRM.htm">Send Reply Message</A> (QMHSNDRM) sends a response to an inquiry message. This API is similar in function to the Send Reply (SNDRPY) command.</li>
<li><A HREF="QMHSNDSM.htm">Send Scope Message</A> (QMHSNDSM) Sends a scope message that allows a user to specify a program to run when your program or job is completed.</li>
</ul>
<!--***************API END PASTE***************-->
<p>The Message Handling exit programs are:</p>
<!-- ***** NOTE ***** Do not manually update text or links in this section. -->
<!-- Updates made in this section *will* be overlaid by automated tools -->
<!-- Notify User Technologies of needed updates to be made in XML for API finder.-->
<!--***************EXIT PROGRAM BEGIN PASTE***************-->
<ul>
<li><A HREF="XBREAK.htm">Break Handling</A> provides the capability of handling messages that arrive at a message queue that is in *BREAK mode.</li>
<li><A HREF="XDEFAULT.htm">Default Handling</A> provides a default message handling action that can be used if the program that is signaled an escape message does not monitor for or handle the escape message.</li>
<li><A HREF="XREPLY.htm">Reply Handling</A> is called when a reply is sent to an inquiry message.</li>
</ul>
<!--***************EXIT PROGRAM END PASTE***************-->
<hr>
<center>
<table cellpadding="2" cellspacing="2">
<tr align="center">
<td valign="middle" align="center">
<a href="#Top_Of_Page">Top</a> |
<a href="aplist.htm">APIs by category</a></td>
</tr>
</table>
</center>
</body>
</html>