ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/inzpfm.htm

277 lines
9.7 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">
<title>Initialize Physical File Mbr (INZPFM)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="INZPFM.Top_Of_Page"></a>
<h2>Initialize Physical File Mbr (INZPFM)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>Conditional
</td>
<td valign="top" align="right">
<a href="#INZPFM.PARAMETERS.TABLE">Parameters</a><br>
<a href="#INZPFM.COMMAND.EXAMPLES">Examples</a><br>
<a href="#INZPFM.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="INZPFM"></a>
<p>The Initialize Physical File Member (INZPFM) command initializes records in a member of a physical file to the specified type of record (either default or deleted records). If the initialized member is empty, records are added and initialized to the specified type; if the member is not empty, records of the specified type are added to the member. As many records are added as is necessary to make the total record count specified.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>This command is conditionally threadsafe. In multithreaded jobs, this command is not threadsafe and fails for Distributed Data Management (DDM) files of type *SNA.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#INZPFM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="INZPFM.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#INZPFM.FILE"><b>FILE</b></a></td>
<td valign="top">Physical file</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Required, Positional 1</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Physical file</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top"><a href="#INZPFM.MBR"><b>MBR</b></a></td>
<td valign="top">Member</td>
<td valign="top"><i>Name</i>, <b><u>*FIRST</u></b>, *LAST</td>
<td valign="top">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#INZPFM.RECORDS"><b>RECORDS</b></a></td>
<td valign="top">Initialize records as</td>
<td valign="top"><b><u>*DFT</u></b>, *DLT</td>
<td valign="top">Optional, Positional 3</td>
</tr>
<tr>
<td valign="top"><a href="#INZPFM.TOTRCDS"><b>TOTRCDS</b></a></td>
<td valign="top">Total number of records</td>
<td valign="top">1-4294967288, <b><u>*NXTINCR</u></b></td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#INZPFM.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="INZPFM.FILE"></a>
<h3>Physical file (FILE)</h3>
<p>Specifies the physical file that contains the member to be initialized.
</p>
<p>This is a required parameter.
</p>
<p><b>Qualifier 1: Physical file</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of physical file.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the library list for the current thread are searched until the first match is found.
</dd>
</dl>
<dl>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the job is used to locate the file. If no library is specified as the current library, QGPL is used.
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library to be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#INZPFM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="INZPFM.MBR"></a>
<h3>Member (MBR)</h3>
<p>Specifies the file member to be initialized.
</p>
<dl>
</dl>
<dl>
<dt><b><u>*FIRST</u></b></dt>
<dd>The first member of the specified file is used.
</dd>
</dl>
<dl>
<dt><b>*LAST</b></dt>
<dd>The last member of the specified physical file is initialized.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the physical file member to be initialized.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#INZPFM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="INZPFM.RECORDS"></a>
<h3>Initialize records as (RECORDS)</h3>
<p>Specifies the type of records that are initialized or added to the specified member. The records in the member are initialized as default records or deleted records.
</p>
<dl>
<dt><b><u>*DFT</u></b></dt>
<dd>The records in the member are initialized as default records. If a default value was specified in the DDS (DFT keyword) for a field, that field is initialized to the specified default; otherwise, all numeric fields are initialized to zeros and all character fields are initialized to blanks.
</dd>
<dt><b>*DLT</b></dt>
<dd>The records in the member are initialized as deleted records. The records are not eligible for access, but simply hold a place in the file. Deleted records are changed to reuse the deleted space.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#INZPFM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="INZPFM.TOTRCDS"></a>
<h3>Total number of records (TOTRCDS)</h3>
<p>Specifies the total number of records in the member after it is initialized. If the value specified in this parameter causes the size of the file to be larger than the size specified when the file was created, a message is sent to the system operator's message queue (QSYSOPR). The operator can either continue or cancel the operation.
</p>
<dl>
<dt><b><u>*NXTINCR</u></b></dt>
<dd>The number of records in the member is increased to extend the file to the next allocation amount added. If the member is empty, records are added to meet the initial allocation specified for the member. *NXTINCR is not valid if *NOMAX was specified for the <b>Member size (SIZE)</b> parameter, when the file is created.
</dd>
<dt><b><i>1-4294967288</i></b></dt>
<dd>Specify the total number of records you want the the member to have. If the number of existing records in the member already meets or is larger than this number, no records are initialized; if the number is less than that specified, enough records are initialized to equal the total specified.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#INZPFM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="INZPFM.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
INZPFM FILE(*CURLIB/INV) TOTRCDS(12000)
</pre>
</p>
<p>This command initializes as many as 12,000 records in the first member of the physical file named INV in the job's current library *CURLIB. Only the number of records are added that brings the total to 12,000 records in the member. Any records that are added are initialized to the default format. If a default value is specified in the DDS (DFT keyword) for a field, that field is initialized to the specified default; otherwise, all numeric fields are initialized to zeros and all character fields are initialized to blanks.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#INZPFM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="INZPFM.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF3130</b></dt>
<dd>Member &amp;2 already in use.
</dd>
<dt><b>CPF3131</b></dt>
<dd>Cannot initialize member &amp;2 with default records.
</dd>
<dt><b>CPF3132</b></dt>
<dd>TOTRCDS parameter value either missing or too small.
</dd>
<dt><b>CPF3133</b></dt>
<dd>File &amp;1 in library &amp;3 contains no members.
</dd>
<dt><b>CPF3134</b></dt>
<dd>Referential constraint error processing member &amp;2.
</dd>
<dt><b>CPF3136</b></dt>
<dd>File &amp;1 in &amp;3 not allowed on command.
</dd>
<dt><b>CPF3137</b></dt>
<dd>No authority to clear, initialize, or copy member &amp;2.
</dd>
<dt><b>CPF3138</b></dt>
<dd>Check constraint error processing member &amp;2.
</dd>
<dt><b>CPF3140</b></dt>
<dd>Initialize or copy of member &amp;2 canceled.
</dd>
<dt><b>CPF3141</b></dt>
<dd>Member &amp;2 not found.
</dd>
<dt><b>CPF3142</b></dt>
<dd>File &amp;1 in library &amp;3 not found.
</dd>
<dt><b>CPF3143</b></dt>
<dd>Increments not allowed for member &amp;2.
</dd>
<dt><b>CPF3144</b></dt>
<dd>Member &amp;2 not cleared or initialized.
</dd>
<dt><b>CPF3148</b></dt>
<dd>New records need too much space for member &amp;2.
</dd>
<dt><b>CPF3156</b></dt>
<dd>File &amp;1 in library &amp;3 in use.
</dd>
<dt><b>CPF3157</b></dt>
<dd>Triggers prevent requested operation.
</dd>
<dt><b>CPF3159</b></dt>
<dd>Member &amp;2 saved with STG(*FREE).
</dd>
<dt><b>CPF3160</b></dt>
<dd>Operation on member &amp;2 ended. Entry cannot be journaled.
</dd>
<dt><b>CPF3179</b></dt>
<dd>Cannot clear or initialize DDM file &amp;1 in &amp;3.
</dd>
<dt><b>CPF3180</b></dt>
<dd>Member &amp;2 not initialized.
</dd>
<dt><b>CPF32CF</b></dt>
<dd>Distributed file error, reason code &amp;3.
</dd>
<dt><b>CPF32C3</b></dt>
<dd>Distributed file error, level ID mismatch
</dd>
<dt><b>CPF320B</b></dt>
<dd>Operation was not valid for database file &amp;1.
</dd>
<dt><b>CPF9801</b></dt>
<dd>Object &amp;2 in library &amp;3 not found.
</dd>
<dt><b>CPF9810</b></dt>
<dd>Library &amp;1 not found.
</dd>
<dt><b>CPF9820</b></dt>
<dd>Not authorized to use library &amp;1.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#INZPFM.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>