166 lines
5.1 KiB
HTML
166 lines
5.1 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>QMHSNDM()--i5/OS PASE Send Nonprogram Message</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. -->
|
||
|
<!-- Change History: -->
|
||
|
<!-- YYMMDD USERID Change description -->
|
||
|
<!-- Created by V2DCIJB on 23 Nov 1999 -->
|
||
|
<!-- Edited by Kersten Jan 02 -->
|
||
|
<!-- End Header Records -->
|
||
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<!-- Java sync-link -->
|
||
|
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript">
|
||
|
</script>
|
||
|
|
||
|
<a name="Top_Of_Page"></a>
|
||
|
|
||
|
<h2>QMHSNDM()--Send Nonprogram Message for i5/OS PASE</h2>
|
||
|
|
||
|
<div class="box" style="width: 60%;">
|
||
|
<br>
|
||
|
Syntax
|
||
|
|
||
|
<pre>
|
||
|
#include <os400msg.h>
|
||
|
|
||
|
int QMHSNDM(const char *<em>msgid</em>,
|
||
|
const char *<em>msgf</em>,
|
||
|
const void *<em>msgdata</em>,
|
||
|
int <em>msgdataLen</em>,
|
||
|
const char *<em>msgtype</em>,
|
||
|
const char *<em>msgqList</em>,
|
||
|
int <em>msgqCount</em>,
|
||
|
const char *<em>rpyq</em>,
|
||
|
int *<em>msgkey</em>,
|
||
|
void *<em>errcode</em>);
|
||
|
|
||
|
int QMHSNDM1(const char *<em>msgid</em>,
|
||
|
const char *<em>msgf</em>,
|
||
|
const void *<em>msgdata</em>,
|
||
|
int <em>msgdataLen</em>,
|
||
|
const char *<em>msgtype</em>,
|
||
|
const char *<em>msgqList</em>,
|
||
|
int <em>msgqCount</em>,
|
||
|
const char *<em>rpyq</em>,
|
||
|
int *<em>msgkey</em>,
|
||
|
void *<em>errcode</em>,
|
||
|
int <em>ccsid</em>);
|
||
|
</pre>
|
||
|
|
||
|
Public Default Authority: *USE<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
Library: Standard C Library (libc.a)<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
Threadsafe: Yes<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
</div>
|
||
|
|
||
|
<p>Note: These functions can only be used in an i5/OS PASE program. See <a href=
|
||
|
"../rzalf/rzalfintro.htm">i5/OS PASE</a> for more information about creating
|
||
|
i5/OS PASE programs.</p>
|
||
|
|
||
|
<p>The Send Nonprogram Message (QMHSNDM and QMHSNDM1) i5/OS PASE runtime
|
||
|
functions allow an i5/OS PASE program to send a message to a nonprogram
|
||
|
message queue so it can communicate with another job or user.</p>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Parameters</h3>
|
||
|
|
||
|
<p>These i5/OS PASE runtime functions accept the same arguments as the Send
|
||
|
Nonprogram Message (QMHSNDM) i5/OS API, except that the i5/OS PASE functions
|
||
|
use character string inputs that are null-terminated strings in the i5/OS PASE
|
||
|
CCSID. i5/OS PASE runtime automatically converts input character strings to
|
||
|
the job default CCSID and pads with blanks (as necessary) to match the
|
||
|
fixed-length inputs required by the system API.</p>
|
||
|
|
||
|
<p>No conversions are done for the msgdata (input) argument and the errcode
|
||
|
(input/output) argument because they can contain a mixture of character and
|
||
|
binary data. The <em>ccsid</em> argument specifies the CCSID for character data
|
||
|
in the <em>msgdata</em> argument, and users can request CCSID information for
|
||
|
the <em>errcode</em> argument by using ERRC0200 format. The QMHSNDM i5/OS PASE
|
||
|
runtime function uses the current i5/OS PASE CCSID as a default for the
|
||
|
<em>ccsid</em> value passed to the system API.</p>
|
||
|
|
||
|
|
||
|
<p>See <a href="QMHSNDM.htm">QMHSNDM()--Send Nonprogram Message</a> for further
|
||
|
description of the arguments for the QMHSNDM and QMHSNDM1 i5/OS PASE runtime
|
||
|
functions.</p>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Authorities</h3>
|
||
|
|
||
|
<p>See <a href="QMHSNDM.htm">QMHSNDM()--Send Nonprogram Message</a> for
|
||
|
information about authorities required for the QMHSNDM and QMHSNDM1 i5/OS PASE
|
||
|
runtime functions.</p>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Return Value</h3>
|
||
|
|
||
|
<p>The function result is zero for normal completion. The result is nonzero if
|
||
|
any input character string could not be converted to the job default CCSID or
|
||
|
was too long for the QMHSNDM API, or if the QMHSNDM API returned error
|
||
|
information in the <em>errcode</em> argument.</p>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Related Information</h3>
|
||
|
|
||
|
<ul>
|
||
|
<li><a href="QMHSNDM.htm">QMHSNDM()--Send Nonprogram Message</a> (system
|
||
|
API)<br>
|
||
|
<br>
|
||
|
</li>
|
||
|
|
||
|
<li><a href="pase_qmhrcvm.htm">QMHRCVM()--Receive Nonprogram Message for i5/OS
|
||
|
PASE</a><br>
|
||
|
<br>
|
||
|
</li>
|
||
|
|
||
|
<li><a href="pase_qmhsndpm.htm">QMHSNDPM()--Send Program Message for i5/OS
|
||
|
PASE</a><br>
|
||
|
<br>
|
||
|
</li>
|
||
|
|
||
|
<li><a href="pase_qmhrcvpm.htm">QMHRCVPM()--Receive Program Message for i5/OS
|
||
|
PASE</a><br>
|
||
|
<br>
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
<br>
|
||
|
<hr>
|
||
|
API introduced: V5R1
|
||
|
|
||
|
<hr>
|
||
|
<center>
|
||
|
<table cellpadding="2" cellspacing="2">
|
||
|
<tr align="center">
|
||
|
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
|
||
|
"pase1.htm">i5/OS PASE APIs</a> | <a href="aplist.htm">APIs by category</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</center>
|
||
|
</body>
|
||
|
</html>
|
||
|
|