75 lines
5.5 KiB
HTML
75 lines
5.5 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="Using a sender copy message to obtain a reply" />
|
||
|
<meta name="abstract" content="This topic describes how to obtain a reply to an inquiry message by using a sender copy message." />
|
||
|
<meta name="description" content="This topic describes how to obtain a reply to an inquiry message by using a sender copy message." />
|
||
|
<meta name="DC.subject" content="sender copy message, message, using a sender copy message, obtaining a reply" />
|
||
|
<meta name="keywords" content="sender copy message, message, using a sender copy message, obtaining a reply" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="msghandlereplies.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="immmsg.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="xsmsg.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="sndrcpy" />
|
||
|
<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>Using a sender copy message to obtain a reply</title>
|
||
|
</head>
|
||
|
<body id="sndrcpy"><a name="sndrcpy"><!-- --></a>
|
||
|
<img src="./delta.gif" alt="Start of change" /><!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Using a sender copy message to obtain a reply</h1>
|
||
|
<div><p>This topic describes how to obtain a reply to an inquiry message
|
||
|
by using a sender copy message.</p>
|
||
|
<div class="section"> <p> When an inquiry message is sent it expects a reply. To allow
|
||
|
the sender of an inquiry message to obtain a reply, a sender copy message
|
||
|
is issued and associated internally with the inquiry message. A sender copy
|
||
|
message is a copy of the inquiry message that is used by the sender to obtain
|
||
|
the reply that was sent to its associated inquiry message. Sending and inquiry
|
||
|
and obtaining the reply can be done rather easily when using the <span class="cmdname">SNDUSRMSG</span> command
|
||
|
in a program or procedure. If the <span class="cmdname">SNDUSRMSG</span> command is
|
||
|
not used, the function to send an inquiry and obtain the reply can be done
|
||
|
by the <span class="cmdname">SNDPGMMSG</span> and <span class="cmdname">RCVMSG</span> commands
|
||
|
in a program or procedure. An inquiry can be sent with the <span class="cmdname">SNDPGMMSG</span> command
|
||
|
and the reply can be obtained using the <span class="cmdname">RCVMSG</span> command.
|
||
|
For example, when an inquiry message is sent with the <span class="cmdname">SNDPGMMSG</span> command,
|
||
|
the message reference key (MRK) of the sender copy can be returned on the <span class="cmdname">SNDPGMMSG</span> command
|
||
|
on the KEYVAR parameter. The sender copy message is placed on the reply message
|
||
|
queue that is specified on the <span class="cmdname">SNDPGMMSG</span> command. When
|
||
|
a reply is sent to the inquiry message, internal message handling will also
|
||
|
send the same reply to the sender copy message. Then the program can obtain
|
||
|
the reply with <span class="cmdname">RCVMSG</span> by doing the following:</p>
|
||
|
<ul><li>using the MRK of the sender copy from the KEYVAR parameter of <span class="cmdname">SNDPGMMSG</span> and
|
||
|
specify it on the MSGKEY parameter of the <span class="cmdname">RCVMSG</span> command</li>
|
||
|
<li>specifying a message type of reply</li>
|
||
|
<li>providing a wait time to allow time for a reply to be sent to the inquiry
|
||
|
message</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="msghandlereplies.htm" title="This topic covers using a sender copy message to obtain a reply, finding the job that sent a reply, using the system reply list, and using reply handling exit programs.">Handle replies to inquiry messages</a></div>
|
||
|
</div>
|
||
|
<div class="reltasks"><strong>Related tasks</strong><br />
|
||
|
<div><a href="immmsg.htm" title="This example shows how a procedure sends an inquiry message and handles the reply.">Example: Send an immediate message and handling a reply</a></div>
|
||
|
</div>
|
||
|
<div class="relref"><strong>Related reference</strong><br />
|
||
|
<div><a href="xsmsg.htm" title="This topic contains six message examples: send a completion message, send a completion message with variable text, send an inquiry message and receive its reply, send an inquiry message and receive a reply with Send User Message (SNDUSRMSG), send an escape message, and send an informational message to multiple users.">Examples: Send messages</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<img src="./deltaend.gif" alt="End of change" /></body>
|
||
|
</html>
|