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

262 lines
6.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>Read Build Information (QLYRDBI) 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. -->
<!-- NETMG2 SCRIPT A converted by B2H R4.1 (346) (CMS) by HOLTJM at -->
<!-- RCHVMW2 on 29 Jan 1999 at 10:01:37 -->
<!-- Change History: -->
<!-- YYMMDD USERID Change description -->
<!--File Edited by Kersten Oct 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 language="Javascript" src="../rzahg/synch.js" type="text/javascript">
</script>
<h2>Read Build Information (QLYRDBI) 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="40%">Buffer</td>
<td align="left" valign="top" width="25%">Output</td>
<td align="left" valign="top" width="25%">Char(*)</td>
</tr>
<tr>
<td align="center" valign="top">2</td>
<td align="left" valign="top">Maximum size</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">Read mode</td>
<td align="left" valign="top">Input</td>
<td align="left" valign="top">Char(10)</td>
</tr>
<tr>
<td align="center" valign="top">4</td>
<td align="left" valign="top">Buffer length</td>
<td align="left" valign="top">Output</td>
<td align="left" valign="top">Binary(4)</td>
</tr>
<tr>
<td align="center" valign="top">5</td>
<td align="left" valign="top">Number of records</td>
<td align="left" valign="top">Output</td>
<td align="left" valign="top">Binary(4)</td>
</tr>
<tr>
<td align="center" valign="top">6</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 Read Build Information (QLYRDBI) API reads one or more records from the
space.</p>
<p>QLYRDBI reads the space starting at the first location after the last record
was read. If this is the first time QLYRDBI is called, the first record
following the header record is read.</p>
<p>After QLYRDBI has read the final record, the next call to QLYRDBI starts
reading the space from the beginning again.</p>
<p>QLYRDBI reads one or more records depending on the value specified on the
Read mode parameter. QLYRDBI does not read more records than can fit in the
buffer. The buffer is determined by the Maximum-size parameter.</p>
<br>
<h3>Authorities and Locks</h3>
<p>None.</p>
<br>
<h3>Required Parameter Group</h3>
<dl>
<dt><strong>Buffer</strong></dt>
<dd>OUTPUT; CHAR(*)
<p>A character string to contain one or more records of build information.</p>
</dd>
<dt><strong>Maximum size</strong></dt>
<dd>INPUT; BINARY(4)
<p>The maximum size of the data that is expected to be returned to this call.
Maximum size should be large enough to fit at least one record. If it is too
small for one record, an error occurs.</p>
</dd>
<dt><strong>Read mode</strong></dt>
<dd>INPUT; CHAR(10)
<p>The mode of reading.</p>
<p>The possible read mode values are:</p>
<table cellpadding="5">
<!-- cols="15 85" -->
<tr>
<td align="left" valign="top"><em>*SINGLE</em></td>
<td align="left" valign="top">Read only one record.</td>
</tr>
<tr>
<td align="left" valign="top"><em>*MULTIPLE</em></td>
<td align="left" valign="top">Read more than one record. The maximum number of records that
are read is determined by the size of Maximum size.</td>
</tr>
</table>
<br>
</dd>
<dt><strong>Buffer length</strong></dt>
<dd>OUTPUT; BINARY(4)
<p>The length of the data returned. If records are not read, 0 is returned.</p>
</dd>
<dt><strong>Number of records</strong></dt>
<dd>OUTPUT; BINARY(4)
<p>The number of records read. Number of records is 0 if no records were read,
1 if one record was read or greater than 1 if *MULTIPLE was specified on read
mode and more than one record could fit in the buffer.</p>
</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>
<p>The LIBxxxx error messages are located in the message file QLIBMSG
in the QSYS library.</p>
<table width="100%" cellpadding="5">
<!-- cols="15 85" -->
<tr>
<th align="left" valign="top" nowrap>Message ID</th>
<th align="left" valign="top">Error Message Text</th>
</tr>
<tr>
<td valign="top">LIB9005</td>
<td valign="top">Value specified for Maximum size parameter is not
valid.</td>
</tr>
<tr>
<td align="left" valign="top">LIB9006</td>
<td align="left" valign="top">Value specified for Read mode parameter is not valid.</td>
</tr>
<tr>
<td align="left" valign="top">LIB9007</td>
<td align="left" valign="top">Value specified for Maximum size parameter is too small.</td>
</tr>
<tr>
<td align="left" valign="top">LIB9009</td>
<td align="left" valign="top">Build information space does not exist, or it is damaged or
deleted.</td>
</tr>
<tr>
<td align="left" valign="top">LIB9010</td>
<td align="left" valign="top">Build information missing or no more build information.</td>
</tr>
<tr>
<td align="left" valign="top">LIB9011</td>
<td align="left" valign="top">Build information in the space is not complete.</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">CPF3C90 E</td>
<td align="left" valign="top">Literal value cannot be changed.</td>
</tr>
<tr>
<td align="left" valign="top">CPF9872 E</td>
<td align="left" 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
<hr>
<center>
<table cellpadding="2" cellspacing="2">
<tr align="center"><td valign="middle" align="center">
<a href="#Top_Of_Page">Top</a> |
<a href="hll.htm">High-level language APIs</a> |
<a href="aplist.htm">APIs by category</a></td>
</tr>
</table>
</center>
</body>
</html>