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

132 lines
3.2 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>Qp2EndPase()--End an i5/OS PASE Program</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 -->
<!-- Edited by Kersten Jan 02 -->
<!-- Created by V2DCIJB on 23 Nov 1999 -->
<!--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>Qp2EndPase()--End an i5/OS PASE Program</h2>
<div class="box" style="width: 60%;">
<br>
&nbsp;&nbsp;Syntax
<pre>
#include &lt;qp2user.h&gt;
int Qp2EndPase(void);
</pre>
<br>
&nbsp;&nbsp;Service Program Name: QP2USER<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Default Public Authority: *USE<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Threadsafe: No<br>
<!-- iddvc RMBR -->
<br>
</div>
<p>The Qp2EndPase() function ends any i5/OS PASE program currently running in
the job.</p>
<br>
<h3>Parameters</h3>
<p>None.</p>
<br>
<h3>Authorities</h3>
<p>None.</p>
<br>
<h3>Return Value</h3>
<p>The function result is nonzero if an error is detected attempting to end the
i5/OS PASE program.</p>
<br>
<h3>Usage Notes</h3>
<ol>
<li>Qp2EndPase is normally used to end an i5/OS PASE program that ran the
<strong>_RETURN</strong> i5/OS PASE runtime function (to return without
exiting). Such a program remains active (even if it exits or terminates due to
an i5/OS PASE signal) until either Qp2EndPase is called or the ILE activation
group that called the Qp2RunPase API exits. i5/OS PASE programs that do not
use <strong>_RETURN</strong> are ended automatically before control returns
from the Qp2RunPase API.<br>
<br>
</li>
<li>Qp2EndPase returns without error when no i5/OS PASE program is running in
the job.<br>
<br>
</li>
<li><img src="delta.gif" alt="Start of change">Undefined behavior results if Qp2EndPase is called while the Qp2RunPase API
is running (in the same job), or if the job attempts to use the i5/OS PASE program
(without restarting it) after Qp2EndPase is called.<img src="deltaend.gif" alt="End of change"></li>
</ol>
<br>
<h3>Related Information</h3>
<ul>
<li><a href="qp2runpase.htm">Qp2RunPase()--Run an i5/OS PASE Program</a><br>
<br>
</li>
<li><a href="pase__return.htm">_RETURN()--Return Without Exiting i5/OS
PASE</a></li>
</ul>
<br>
<hr>
API introduced: V5R2
<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>