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

348 lines
10 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">
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
<title>Send Request (QNMSNDRQ) API</title>
<!-- Begin Header Records ========================================== -->
<!-- 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. -->
<!-- COMM4 SCRIPT A converted by B2H R4.1 (346) (CMS) by V2DCIJB at -->
<!-- RCHVMW2 on 1 Jun 1999 at 17:32:50 -->
<!-- Change History: -->
<!-- YYMMDD USERID Change description -->
<!--File Edited December, 2001 =========================================== -->
<!--End Header Records ============================================== -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body>
<a name="Top_Of_Page"></a>
<!-- Java sync-link ================================================= -->
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
</script>
<h2>Send Request (QNMSNDRQ) API</h2>
<div class="box" style="width: 70%;">
<br>
&nbsp;&nbsp;Required Parameter Group:<br>
<!-- iddvc RMBR -->
<br>
<table width="100%">
<tr>
<td align="center" valign="top" width="10%">1</td>
<td align="left" valign="top" width="50%">Handle</td>
<td align="left" valign="top" width="20%">Input</td>
<td align="left" valign="top" width="20%">Binary(4)</td>
</tr>
<tr>
<td align="center" valign="top">2</td>
<td align="LEFT" valign="TOP">Remote application name</td>
<td align="LEFT" valign="TOP">Input</td>
<td align="LEFT" valign="TOP">Char(24)</td>
</tr>
<tr>
<td align="center" valign="top">3</td>
<td align="LEFT" valign="TOP">Request Identifier</td>
<td align="LEFT" valign="TOP">Output</td>
<td align="LEFT" valign="TOP">Char(53)</td>
</tr>
<tr>
<td align="center" valign="top">4</td>
<td align="LEFT" valign="TOP">Send buffer</td>
<td align="LEFT" valign="TOP">Input</td>
<td align="LEFT" valign="TOP">Char(*)</td>
</tr>
<tr>
<td align="center" valign="top">5</td>
<td align="LEFT" valign="TOP">Length of send buffer</td>
<td align="LEFT" valign="TOP">Input</td>
<td align="LEFT" valign="TOP">Binary(4)</td>
</tr>
<tr>
<td align="center" valign="top">6</td>
<td align="LEFT" valign="TOP">Request type</td>
<td align="LEFT" valign="TOP">Input</td>
<td align="LEFT" valign="TOP">Char(10)</td>
</tr>
<tr>
<td align="center" valign="top">7</td>
<td align="LEFT" valign="TOP">Post reply</td>
<td align="LEFT" valign="TOP">Input</td>
<td align="LEFT" valign="TOP">Char(10)</td>
</tr>
<tr>
<td align="center" valign="top">8</td>
<td align="LEFT" valign="TOP">Wait time</td>
<td align="LEFT" valign="TOP">Input</td>
<td align="LEFT" valign="TOP">Binary(4)</td>
</tr>
<tr>
<td align="center" valign="top">9</td>
<td align="LEFT" valign="TOP">Error code</td>
<td align="LEFT" valign="TOP">I/O</td>
<td align="LEFT" valign="TOP">Char(*)</td>
</tr>
</table>
<br>
&nbsp;&nbsp;Default Public Authority: *USE<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Threadsafe: No<br>
<!-- iddvc RMBR -->
<br>
</div>
<p>The Send Request (QNMSNDRQ) API, an SNA/Management Services Transport API, sends a request to a remote application. The source application program using this API can indicate if a reply should be returned. If request-only data is sent, the source application will not know if the request data was successfully delivered. To confirm delivery, the source application must request a reply.</p>
<p>When the Send Request (QNMSNDRQ) API operation completes, the remote application may or may not be present. When the send request is complete, the request has been sent from the local system. If a reply is expected but the remote application does not exist, an error code is returned on the subsequent receive operation.</p>
<p>If a reply is not expected, the post reply parameter is ignored.</p>
<p>If the wait time is 0, an entry is placed on the data queue when the send request completes. The application should then perform a Receive Operation Completion (QNMRCVOC) to obtain the results of the send operation. It is recommended that a minimum of 30 seconds be used for the wait time. Larger values may be required in some networks.</p>
<p>The current value for the mode name of the application identified by the handle determines which session is used to send the request.</p>
<br>
<!-- Please NOTE: DO NOT DELETE THIS SECTION if this API has no authorities and locks. -->
<!-- Instead, use the commented out coding below to indicate NONE. -->
<h3>Authorities and Locks</h3>
<!-- Use this if there are no authorities and locks. -->
<p>None.</p>
<br>
<h3>Required Parameter Group</h3>
<dl>
<dt><strong>Handle</strong></dt>
<dd>INPUT; BINARY(4)
<p>The unique identifier for this application, which was returned by the Start Application (QNMSTRAP) API.</p></dd>
<dt><strong>Remote application name</strong></dt>
<dd>INPUT; CHAR(24)
<p>The name of the remote application to which the request is sent. The first 8 characters contain the network ID, the second 8 characters contain the control point name (or the logical unit name may be used), and the third 8 characters contain the application name of the remote application.</p></dd>
<dt><strong>Request identifier</strong></dt>
<dd>OUTPUT; CHAR(53)
<p>The identifier that the system assigned to this request. This identifier must be kept by the application to receive replies to the request (if any).</p></dd>
<dt><strong>Send buffer</strong></dt>
<dd>INPUT; CHAR(*)
<p>The data record being sent.</p></dd>
<dt><strong>Length of send buffer</strong></dt>
<dd>INPUT; BINARY(4)
<p>The size of the data record being sent. The send buffer can range in size from 0 through 31739.</p></dd>
<dt><strong>Request type</strong></dt>
<dd>INPUT; CHAR(10)
<p>The type of data to be sent:</p>
<table cellpadding="3">
<!-- cols="15 85" -->
<tr>
<td align="left" valign="top"><em>*RQS</em></td>
<td valign="top">This is a request only; no reply is expected.</td>
</tr>
<tr>
<td align="left" valign="top"><em>*RQSRPY</em></td>
<td valign="top">A reply is expected to this request.</td>
</tr>
</table>
<br>
</dd>
<dt><strong>Post reply</strong></dt>
<dd>INPUT; CHAR(10)
<p>Whether entries should be put on the data queue when replies to this request arrive.</p>
<table cellpadding="3">
<!-- cols="10 90" -->
<tr>
<td align="left" valign="top"><em>*NO</em></td>
<td valign="top">Do not place a reply entry on a data queue.</td>
</tr>
<tr>
<td align="left" valign="top"><em>*YES</em></td>
<td valign="top">Place the reply entry on the data queue associated with the handle.</td>
</tr>
</table>
<br>
</dd>
<dt><strong>Wait time</strong></dt>
<dd>INPUT; BINARY(4)
<p>The amount of time the application waits for the send operation to complete.</p>
<table cellpadding="3">
<!-- cols="15 85" -->
<tr>
<td align="left" valign="top"><em>-1</em></td>
<td valign="top">Waits for the send operation to complete or for a condition such that the operation cannot complete (for example, a communications failure).</td>
</tr>
<tr>
<td align="left" valign="top"><em>0</em></td>
<td valign="top">Does not wait for the operation to complete.</td>
</tr>
<tr>
<td align="left" valign="top"><em>1-99999</em></td>
<td valign="top">The number of seconds the application waits.</td>
</tr>
</table>
<br>
</dd>
<dt><strong>Error code</strong></dt>
<dd>I/O; CHAR(*)
<p>The structure in which to return error information. For the format of the structure, see <a href="../apiref/error.htm#hdrerrcod">Error Code Parameter</a>.</p></dd>
</dl>
<br>
<h3>Error Messages</h3>
<table width="100%" cellpadding="3">
<!-- cols="15 85" -->
<tr>
<th align="left" valign="top">Message ID</th>
<th align="left" valign="top">Error Message Text</th>
</tr>
<tr>
<td align="left" valign="top">CPF24B4 E</td>
<td valign="top">Severe error while addressing parameter list.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3C90 E</td>
<td valign="top">Literal value cannot be changed.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3CF1 E</td>
<td valign="top">Error code parameter not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7AC0 E</td>
<td valign="top">&amp;3.&amp;4 cannot receive data at this time.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7ADC E</td>
<td valign="top">Internal processing error.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7ADD E</td>
<td valign="top">Operation did not complete.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7ADF E</td>
<td valign="top">Session failure. Cannot send data at this time.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7AD2 E</td>
<td valign="top">Send buffer length value &amp;3 not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7AD6 E</td>
<td valign="top">Request type value &amp;3 not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7AD9 E</td>
<td valign="top">Post reply value &amp;3 not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7AEC E</td>
<td valign="top">Wait time &amp;3 not between -1 and 99999.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7AE0 E</td>
<td valign="top">Function requested not supported by remote system.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7AE1 E</td>
<td valign="top">Sign-on to control point &amp;3.&amp;4 denied.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7AE2 E</td>
<td valign="top">Handle &amp;1 not found.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7AE3 E</td>
<td valign="top">Management Services transport operation not permitted.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7AE5 E</td>
<td valign="top">Control point &amp;3.&amp;4 not found.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7AE6 E</td>
<td valign="top">Communication with control point &amp;3.&amp;4 failed.</td>
</tr>
<tr>
<td align="left" valign="top">CPF7AE7 E</td>
<td valign="top">Remote application program &amp;5 not found.</td>
</tr>
<tr>
<td align="left" valign="top">CPF9872 E</td>
<td valign="top">Program or service program &amp;1 in library &amp;2 ended. Reason code &amp;3.</td>
</tr>
</table>
<br>
<hr>
API introduced: V2R2<br>
<hr>
<center>
<table cellpadding="2" cellspacing="2">
<tr align="center">
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a
href="netmg.htm">Network Management APIs</a> | <a href="aplist.htm">APIs
by category</a></td>
</tr>
</table>
</center>
</body>
</html>