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

341 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>Get Export Long (QleGetExpLong) 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. -->
<!-- Created for V5R3 by Aaron Albertson (aarona) -->
<!-- Change history: -->
<!-- YYMMDD USERID:(description of change, DCR/PTR ...)-->
<!--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>Get Export Long (QleGetExpLong) API</h2>
<div class="box" style="width: 70%;">
<br>
&nbsp;&nbsp;Omissible 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%">Activation mark</td>
<td align="LEFT" valign="TOP" width="20%">Input</td>
<td align="LEFT" valign="TOP" width="20%">Binary(8)</td>
</tr>
<tr>
<td align="center" valign="TOP">2</td>
<td align="LEFT" valign="TOP">Export number</td>
<td align="LEFT" valign="TOP">Input</td>
<td align="LEFT" valign="TOP">Binary(4)</td>
</tr>
<tr>
<td align="center" valign="TOP">3</td>
<td align="LEFT" valign="TOP">Export name length</td>
<td align="LEFT" valign="TOP">Input</td>
<td align="LEFT" valign="TOP">Binary(4)</td>
</tr>
<tr>
<td align="center" valign="TOP">4</td>
<td align="LEFT" valign="TOP">Export name</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">Exported item</td>
<td align="LEFT" valign="TOP">Output</td>
<td align="LEFT" valign="TOP">PTR(OPN)</td>
</tr>
<tr>
<td align="center" valign="TOP">6</td>
<td align="LEFT" valign="TOP">Type of export item</td>
<td align="LEFT" valign="TOP">Output</td>
<td align="LEFT" valign="TOP">Binary(4)</td>
</tr>
<tr>
<td align="center" valign="TOP">7</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;Returned Value:<br>
<!-- iddvc RMBR -->
<br>
<table width="100%">
<tr>
<td align="RIGHT" valign="TOP" width="10%">&nbsp;</td>
<td align="LEFT" valign="TOP" width="50%">Exported item</td>
<td align="LEFT" valign="TOP" width="20%">Output</td>
<td align="LEFT" valign="TOP" width="20%">PTR(OPN)</td>
</tr>
</table>
<br>
&nbsp;&nbsp;Service Program: QLEAWI<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Default Public Authority: *USE<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Threadsafe: Yes<br>
<!-- iddvc RMBR -->
<br>
</div>
<p>The Get Export Long (QleGetExpLong) API allows the caller to resolve a
pointer to an export (either data or procedure) either by name or export number.
The pointer is materialized for the specified activation. If the activation
mark given is zero, then all activations in the activation group are searched
(no guaranteed search order). The QleGetExpLong API is identical to the
<a href="qlegetexp.htm">Get Export</a> (QleGetExp) API, except that the QleGetExp API takes a BINARY(4)
activation mark as the first parameter instead of a BINARY(8) activation
mark.<br>
</p>
<h3>Authorities and Locks</h3>
<p>None.</p>
<br>
<h3>Omissible Parameter Group</h3>
<dl>
<dt><strong>Activation mark</strong></dt>
<dd>INPUT; BINARY(8)
<p>The activation containing the export. If this parameter is omitted, then it
is treated as if a 0 was specified. This parameter may not be omitted if the
search is done by export number.</p>
<p>The following special value is supported for this parameter:</p>
<table cellpadding="5">
<!-- cols="5 95" -->
<tr>
<td align="left" valign="top"><em>0</em></td>
<td align="left" valign="top">All of the activations in the caller's activation
group are searched. If more than one activation contains the specified export,
it is undefined as to which of those activations the export is taken from.</td>
</tr>
</table>
<br>
</dd>
<dt><strong>Export number</strong></dt>
<dd>INPUT; BINARY(4)
<p>Materialize the nth exported identifier in the service program. The order is
defined by the binding service language with the first exported identifier
being 1. If this parameter is omitted, then it is treated as if a 0 was
specified.</p>
<p>The following special value is supported for this parameter:</p>
<table cellpadding="5">
<!-- cols="5 95" -->
<tr>
<td align="left" valign="top"><em>0</em></td>
<td align="left" valign="top">Materialize the item named in the export name
parameter.</td>
</tr>
</table>
<br>
</dd>
<dt><strong>Export name length</strong></dt>
<dd>INPUT; BINARY(4)
<p>The length of the export name. If this parameter is omitted, then it is
treated as if a 0 was specified. This parameter is ignored if the export number
parameter is not zero.</p>
<p>The following special value is supported for this parameter:</p>
<table cellpadding="5">
<!-- cols="5 95" -->
<tr>
<td align="left" valign="top"><em>0</em></td>
<td align="left" valign="top">The export name is a null-terminated string.</td>
</tr>
</table>
<br>
</dd>
<dt><strong>Export name</strong></dt>
<dd>INPUT; CHAR(*)
<p>A string containing the name of the exported identifier. The name is matched
exactly, without CCSID conversion or folding to uppercase. This parameter is
ignored if the export number parameter is not zero. The export name cannot be
omitted if the export number is omitted.</p>
</dd>
<dt><strong>Exported item</strong></dt>
<dd>OUTPUT; PTR(OPN)
<p>The procedure pointer or space pointer to the exported item. If the
identifier could not be exported, this value is null.</p>
</dd>
<dt><strong>Type of export item</strong></dt>
<dd>OUTPUT; BINARY(4)
<p>The type of the exported item. The possible types follow:</p>
<table cellpadding="5">
<!-- cols="5 95" -->
<tr>
<td align="left" valign="top"><em>0</em></td>
<td align="left" valign="top">Export was not found</td>
</tr>
<tr>
<td align="left" valign="top"><em>1</em></td>
<td align="left" valign="top">Export is a procedure</td>
</tr>
<tr>
<td align="left" valign="top"><em>2</em></td>
<td align="left" valign="top">Export is data</td>
</tr>
<tr>
<td align="left" valign="top"><em>3</em></td>
<td align="left" valign="top">Export not accessible</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>. If this
parameter is omitted, diagnostic and escape messages are issued to the
application.</p>
</dd>
</dl>
<br>
<h3>Returned Value</h3>
<dl>
<dt><strong>Pointer to exported item</strong></dt>
<dd>OUTPUT; PTR(OPN)
<p>This API returns the value for the pointer to the exported item
parameter.</p>
</dd>
</dl>
<br>
<h3>Error Messages</h3>
<table width="100%" cellpadding="5">
<!-- cols="15 85" -->
<tr>
<th align="left" valign="top">Message ID</th>
<th align="left" valign="top">Error Message Text</th>
</tr>
<tr>
<td width="15%" valign="top">CPF24B4 E</td>
<td width="85%" valign="top">Severe error while addressing parameter list.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3C1D E</td>
<td align="left" valign="top">Length specified in parameter &amp;1 not
valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3C1E E</td>
<td align="left" valign="top">Required parameter &amp;1 omitted.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3C90 E</td>
<td align="left" valign="top">Literal value cannot be changed.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3CF1 E</td>
<td align="left" valign="top">Error code parameter not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3CF2 E</td>
<td align="left" valign="top">Error(s) occurred during running of &amp;1
API.</td>
</tr>
<tr>
<td align="left" valign="top">MCH4421 E</td>
<td align="left" valign="top">At least one field in the allocation strategy is
not valid.</td>
</tr>
<tr>
<td align="left" valign="top">MCH4422 E</td>
<td align="left" valign="top">&amp;1 cannot be called in the default activation
group.</td>
</tr>
</table>
<br>
<hr>
API introduced: V5R3
<hr>
<center>
<table cellpadding="2" cellspacing="2">
<tr align="center">
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
"pgm1.htm">Program and CL Command APIs</a> | <a href="aplist.htm">APIs by
category</a></td>
</tr>
</table>
</center>
</body>
</html>