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

487 lines
14 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>Generate Program Temporary Fix Name (QPZGENNM) 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. -->
<!-- QPZGENNM SCRIPT A converted by B2H R4.1 (346) (CMS) by KENTALA -->
<!-- at RCHVMW2 on 7 Oct 1998 at 18:28:07 -->
<!-- Change History: -->
<!-- YYMMDD USERID Change description -->
<!-- Edited by Kersten Jan 02 -->
<!--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>Generate Program Temporary Fix Name (QPZGENNM) API</h2>
<div class="box" style="width: 80%;">
<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="50%">Receiver variable</td>
<td align="left" valign="top" width="20%">Output</td>
<td align="left" valign="top" width="20%">Char(*)</td>
</tr>
<tr>
<td align="center" valign="top">2</td>
<td align="left" valign="top">Length of receiver variable</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">PTF information</td>
<td align="left" valign="top">Input</td>
<td align="left" valign="top">Char(50)</td>
</tr>
<tr>
<td align="center" valign="top">4</td>
<td align="left" valign="top">Format name</td>
<td align="left" valign="top">Input</td>
<td align="left" valign="top">Char(8)</td>
</tr>
<tr>
<td align="center" valign="top">5</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>PTF save files and cover letters are usually named Q plus the PTF ID.
Sometimes a PTF for another product exists on the system and has the same ID.
When this happens, another name must be selected for the PTF save file and the
cover letter member name. The first 8 characters of the cover letter member
name must match the PTF save file name. The Generate PTF Name (QPZGENNM) API
generates a save file or cover letter member name for a PTF. Checking is done
to verify that the name has not been used. A unique cover letter name is
generated for each national language version (NLV).</p>
<p>You can use the QPZGENNM API to:</p>
<ul>
<li>Generate a unique name for a PTF save file in the library returned in the
library name field.</li>
<li>Generate a unique name for a PTF cover letter member name in the library
and file returned in the library name field and file name field.</li>
</ul>
<br>
<h3>Authorities and Locks</h3>
<dl>
<dt><em>API Public Authority</em></dt>
<dd>*USE</dd>
</dl>
<br>
<h3>Required Parameter Group</h3>
<dl>
<dt><strong>Receiver variable</strong></dt>
<dd>OUTPUT; CHAR(*)
<p>The receiver variable to receive the generated name. You can specify the
size of the area smaller than the format requested as long as you specify the
receiver variable length parameter correctly. As a result, the API returns only
the data the area can hold.</p>
</dd>
<dt><strong>Length of receiver variable</strong></dt>
<dd>INPUT; BINARY(4)
<p>The length of the receiver variable. The length must be at least 8 bytes. If
this value is larger than the actual receiver variable, unexpected results may
occur.</p>
</dd>
<dt><strong>PTF information</strong></dt>
<dd>INPUT; CHAR(50)
<p>The information about the PTF or cover letter needed to generate the name.
For more information, see <a href="#HDRPTFINF2">Format of PTF
Information</a>.</p>
</dd>
<dt><strong>Format name</strong></dt>
<dd>INPUT; CHAR(8)
<p>The format of the returned information.</p>
<table cellpadding="5">
<!-- cols="15 85" -->
<tr>
<td align="left" valign="top"><em>PTFG0100</em></td>
<td align="left" valign="top">Qualified save file name.</td>
</tr>
<tr>
<td align="left" valign="top"><em>PTFG0200</em></td>
<td align="left" valign="top">Cover letter member, file, and library name.</td>
</tr>
</table>
<p>For more information, see <a href="#HDRCHUMMY">Format of Returned
Information</a>.</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><a name="HDRPTFINF2">Format of PTF Information</a></h3>
<p>The following describes the PTF information parameter. For a detailed
description of the fields in this table, see <a href="#HDRPTFRD1">Field
Descriptions</a>.</p>
<table border width="80%">
<tr>
<th align="center" valign="bottom" colspan="2">Offset</th>
<th align="left" valign="bottom" rowspan="2">Type</th>
<th align="left" valign="bottom" rowspan="2">Field</th>
</tr>
<tr>
<th align="center" valign="bottom">Dec</th>
<th align="center" valign="bottom">Hex</th>
</tr>
<tr>
<td align="center" valign="top" width="10%">0</td>
<td align="center" valign="top" width="10%">0</td>
<td align="left" valign="top" width="20%">CHAR(7)</td>
<td align="left" valign="top" width="60%">PTF ID</td>
</tr>
<tr>
<td align="center" valign="top">7</td>
<td align="center" valign="top">7</td>
<td align="left" valign="top">CHAR(7)</td>
<td align="left" valign="top">Product ID</td>
</tr>
<tr>
<td align="center" valign="top">14</td>
<td align="center" valign="top">E</td>
<td align="left" valign="top">CHAR(6)</td>
<td align="left" valign="top">Release level</td>
</tr>
<tr>
<td align="center" valign="top">20</td>
<td align="center" valign="top">14</td>
<td align="left" valign="top">CHAR(14)</td>
<td align="left" valign="top">Reserved</td>
</tr>
<tr>
<td align="center" valign="top">34</td>
<td align="center" valign="top">22</td>
<td align="left" valign="top">CHAR(4)</td>
<td align="left" valign="top">National language version</td>
</tr>
<tr>
<td align="center" valign="top">38</td>
<td align="center" valign="top">26</td>
<td align="left" valign="top">CHAR(12)</td>
<td align="left" valign="top">Reserved</td>
</tr>
</table>
<br>
<br>
<h3><a name="HDRCHUMMY">Format of Returned Information</a></h3>
<p>When you generate a name for a PTF or cover letter, the name is only unique
in the library and file returned by the API. The formats below show the fields
returned in the receiver variable parameter. For a detailed description of the
fields in these tables, see <a href="#HDRPTFRD1">Field Descriptions</a>.</p>
<h3><a name="HDRLEINIE">PTFG0100 Format</a></h3>
<table border width="80%">
<tr>
<th align="center" valign="bottom" colspan="2">Offset</th>
<th align="left" valign="bottom" rowspan="2">Type</th>
<th align="left" valign="bottom" rowspan="2">Field</th>
</tr>
<tr>
<th align="center" valign="bottom">Dec</th>
<th align="center" valign="bottom">Hex</th>
</tr>
<tr>
<td align="center" valign="top" width="10%">0</td>
<td align="center" valign="top" width="10%">0</td>
<td align="left" valign="top" width="20%">BINARY(4)</td>
<td align="left" valign="top" width="60%">Bytes returned</td>
</tr>
<tr>
<td align="center" valign="top">4</td>
<td align="center" valign="top">4</td>
<td align="left" valign="top">BINARY(4)</td>
<td align="left" valign="top">Bytes available</td>
</tr>
<tr>
<td align="center" valign="top">8</td>
<td align="center" valign="top">8</td>
<td align="left" valign="top">CHAR(10)</td>
<td align="left" valign="top">File name</td>
</tr>
<tr>
<td align="center" valign="top">18</td>
<td align="center" valign="top">12</td>
<td align="left" valign="top">CHAR(10)</td>
<td align="left" valign="top">Library name</td>
</tr>
</table>
<br>
<br>
<h3><a name="HDRPTFG2">PTFG0200 Format</a></h3>
<table border width="80%">
<tr>
<th align="center" valign="bottom" colspan="2">Offset</th>
<th align="left" valign="bottom" rowspan="2">Type</th>
<th align="left" valign="bottom" rowspan="2">Field</th>
</tr>
<tr>
<th align="center" valign="bottom">Dec</th>
<th align="center" valign="bottom">Hex</th>
</tr>
<tr>
<td align="center" valign="top" width="10%">0</td>
<td align="center" valign="top" width="10%">0</td>
<td align="left" valign="top" width="20%">CHAR(28)</td>
<td align="left" valign="top" width="60%">Everything from the PTFG0100
format</td>
</tr>
<tr>
<td align="center" valign="top">28</td>
<td align="center" valign="top">1C</td>
<td align="left" valign="top">CHAR(10)</td>
<td align="left" valign="top">Member name</td>
</tr>
<tr>
<td align="center" valign="top">38</td>
<td align="center" valign="top">26</td>
<td align="left" valign="top">CHAR(*)</td>
<td align="left" valign="top">Reserved</td>
</tr>
</table>
<br>
<br>
<h3><a name="HDRPTFRD1">Field Descriptions</a></h3>
<p><strong>Bytes available.</strong> The number of bytes of data available to
be returned. All available data is returned if enough space is provided.</p>
<p><strong>Bytes returned.</strong> The number of bytes of data returned.</p>
<p><strong>File name.</strong> If the format requested was PTFG0100, this is
the save file name to be used to store the PTF. If the format requested was
PTFG0200, this is the file where the cover letter should be stored.</p>
<p><strong>Library name.</strong> The library name for the PTF or cover letter
file.</p>
<p><strong>Member name.</strong> The member name for the cover letter.</p>
<p><strong>National language version.</strong> The national language version of
the cover letter for which the member name is to be generated. This field is
ignored when the format is PTFG0100. For a list of valid values, see the <a
href="../nls/rbagsglobalmain.htm">Globalization</a> topic.</p>
<p><strong>Product ID.</strong> The PTF is for this product.</p>
<p><strong>PTF ID.</strong> The identifier of the PTF.</p>
<p><strong>Release level.</strong> The version, release, and modification level
of the PTF. This must be in the format V<em>x</em>R<em>y</em>M<em>z</em>. Valid
values for <em>x</em> and <em>y</em> are 0 through 9, and valid values for
<em>z</em> are 0 through 9 or A through Z.</p>
<p><strong>Reserved.</strong> This field is ignored in the returned variable
parameter. In the PTF information parameter, this field is reserved and must
contain blanks.</p>
<br>
<h3>Usage Notes</h3>
<p>The file name is not reserved and could be in use when a succeeding function
tries to use it.</p>
<p>A name cannot be generated for a PTF that is already in device *SERVICE
known to the system. An error will be signaled if this is done. For a
description of *SERVICE, see the <a href="qpzlogfx.htm">Log Program Temporary
Fix Information API</a>.</p>
<p>A name cannot be generated for a cover letter member if a cover letter for
the same NLV and PTF ID already exists.</p>
<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">CPF0CB3 E</td>
<td width="85%" valign="top">Value for reserved field not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF24B4 E</td>
<td align="left" valign="top">Severe error while addressing parameter list.</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">CPF3C19 E</td>
<td align="left" valign="top">Error occurred with receiver variable specified.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3C20 E</td>
<td align="left" valign="top">Error found by program &amp;1.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3C21 E</td>
<td align="left" valign="top">Format name &amp;1 is not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF3C24 E</td>
<td align="left" valign="top">Length of the receiver variable is 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">CPF35BE E</td>
<td align="left" valign="top">Product &amp;1 &amp;3 not supported or installed.</td>
</tr>
<tr>
<td align="left" valign="top">CPF35D5 E</td>
<td align="left" valign="top">Cover letter NLV not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF35ED E</td>
<td align="left" valign="top">PTF ID &amp;1 not valid.</td>
</tr>
<tr>
<td align="left" valign="top">CPF35E9 E</td>
<td align="left" valign="top">PTF &amp;1-&amp;2 &amp;3 already in *SERVICE.</td>
</tr>
<tr>
<td align="left" valign="top">CPF358A E</td>
<td align="left" valign="top">Release not valid.</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: V2R3
<hr>
<table cellpadding="2" cellspacing="2" align="center">
<tr align="center">
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
"sw1.htm">Software Product APIs</a> | <a href="aplist.htm">APIs by
category</a></td>
</tr>
</table>
</body>
</html>