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

216 lines
6.0 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>Calling Math Bindable APIs</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 -->
<!-- ILE5A SCRIPT A converted by B2H R4.1 (346) (CMS) by NLJONES at -->
<!-- RCHVMX on 25 Feb 1999 at 15:07:42 -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body>
<!-- End Header Records -->
<!-- Java sync-link -->
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
</script>
<h2>Calling Math Bindable APIs</h2>
<p>ILE math bindable APIs can be called through the intrinsic functions of an
ILE language or through a call statement specific to the ILE language. In
either of the calling conventions, you need to specify one or two input
parameters for the math bindable API being called. The number of input
parameters is indicated in <a href="ile5a5.htm#TBLMATHTAB">Math API Descriptions</a> under
the No. Inputs column.</p>
<p>For example, if the number of input parameters for CEESxnnn is 1, the API is
based on the following format:</p>
<div class="box" style="width: 60%;">
<br>
&nbsp;&nbsp;Required Parameter:<br>
<!-- iddvc RMBR -->
<br>
<table width="100%">
<tr>
<td align="center" valign="top" width="10%">1</td>
<td align="left" valign="top" width="30%">parm1</td>
<td align="left" valign="top" width="30%">Input</td>
<td align="left" valign="top" width="30%">Data type</td>
</tr>
<tr>
<td align="center" valign="top">2</td>
<td align="left" valign="top">result</td>
<td align="left" valign="top">Output</td>
<td align="left" valign="top">Data type</td>
</tr>
</table>
<br>
&nbsp;&nbsp;Omissible Parameter:<br>
<!-- iddvc RMBR -->
<br>
<table width="100%">
<tr>
<td align="center" valign="top" width="10%">3</td>
<td align="left" valign="top" width="30%">fc</td>
<td align="left" valign="top" width="30%">Output</td>
<td align="left" valign="top" width="30%">FEEDBACK</td>
</tr>
</table>
<br>
</div>
<p>If the number of input parameters for CEESxnnn is 2, the API is based on the
following format:</p>
<div class="box" style="width: 60%;">
<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="30%">parm1</td>
<td align="left" valign="top" width="30%">Input</td>
<td align="left" valign="top" width="30%">Data type</td>
</tr>
<tr>
<td align="center" valign="top">2</td>
<td align="left" valign="top">parm2</td>
<td align="left" valign="top">Input</td>
<td align="left" valign="top">Data type</td>
</tr>
<tr>
<td align="center" valign="top">3</td>
<td align="left" valign="top">result</td>
<td align="left" valign="top">Output</td>
<td align="left" valign="top">Data type</td>
</tr>
</table>
<br>
&nbsp;&nbsp;Omissible Parameter:<br>
<!-- iddvc RMBR -->
<br>
<table width="100%">
<tr>
<td align="center" valign="top" width="10%">4</td>
<td align="left" valign="top" width="30%">fc</td>
<td align="left" valign="top" width="30%">Output</td>
<td align="left" valign="top" width="30%">FEEDBACK</td>
</tr>
</table>
<br>
</div>
<br>
<dl>
<dt><strong>CEES<em>xnnn</em></strong></dt>
<dd>The name of the math bindable API being called. The character <em>x</em>
identifies the type of parameters being passed to the API, and may be one of
the following:
<table cellpadding="5">
<!-- cols="10 90" -->
<tr>
<td align="left" valign="top"><em>I</em></td>
<td align="left" valign="top">32-bit binary integer. The data type is
INT4.</td>
</tr>
<tr>
<td align="left" valign="top"><em>J</em></td>
<td align="left" valign="top">64-bit binary integer. The data type is
INT8.</td>
</tr>
<tr>
<td align="left" valign="top"><em>S</em></td>
<td align="left" valign="top">32-bit single floating-point number. The data
type is FLOAT4.</td>
</tr>
<tr>
<td align="left" valign="top"><em>D</em></td>
<td align="left" valign="top">A 64-bit double floating-point number. The data
type is FLOAT8.</td>
</tr>
<tr>
<td align="left" valign="top"><em>T</em></td>
<td align="left" valign="top">A 32-bit single floating-complex number (both
real and imaginary parts are 32 bits long). The data type is COMPLEX8.</td>
</tr>
<tr>
<td align="left" valign="top"><em>E</em></td>
<td align="left" valign="top">A 64-bit double floating-complex number (both
real and imaginary parts are 64 bits long). The data type is COMPLEX16.</td>
</tr>
</table>
<p>The character <em>nnn</em> identifies the API being called. contains
information about each of the ILE math bindable APIs.</p>
</dd>
<dt><strong>parm1</strong></dt>
<dd>The first input parameter to the API. The declared type of this parameter
must match the type specified by the <em>x</em> in the called API.<br>
<br>
</dd>
<dt><strong>parm2</strong></dt>
<dd>The second input parameter to the API. The declared type of this parameter
must match the type specified by the <em>x</em> in the called API.<br>
<br>
</dd>
<dt><strong>fc</strong></dt>
<dd>This omissible parameter represents a 12-byte feedback code.<br>
<br>
</dd>
<dt><strong>result</strong></dt>
<dd>The output parameter containing the result of the computations performed by
the API.</dd>
</dl>
<hr>
<center>
<table cellpadding="2" cellspacing="2">
<tr align="center">
<td valign="middle" align="center">
<a href="#Top_Of_Page">Top</a> |
<a href="ile1a1.htm">ILE CEE APIs</a> |
<a href="aplist.htm">APIs by category</a></td>
</tr>
</table>
</center>
</body>
</html>