1046 lines
47 KiB
HTML
1046 lines
47 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>Create Logical File (CRTLF)</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="CRTLF.Top_Of_Page"></a>
|
|
<h2>Create Logical File (CRTLF)</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="#CRTLF.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#CRTLF.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#CRTLF.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="CRTLF"></a>
|
|
<p>The Create Logical File (CRTLF) command creates a logical file from the information specified on this command and from the data description specifications (DDS) contained in a source file.
|
|
</p>
|
|
<p>A logical file is a database file that describes how data records contained in one or more physical files are presented to a program. The logical file does not contain data records. The data records are contained in the physical files associated with the logical file.
|
|
</p>
|
|
<p>The data records contained in the physical files are grouped into physical file members. The logical file accesses the data records through one or more logical file members. Each logical file member describes the data contained in one or more physical file members, and each logical file member has its own access path to the data. Normally, database files have only one member which, by default, is added to the file when the file is created.
|
|
</p>
|
|
<p><b>Restrictions:</b>
|
|
</p>
|
|
<ul>
|
|
<li>To create a keyed logical file over one or more physical files, you must have object operational (*OBJOPR) authority and either object management (*OBJMGT) authority or object alter (*OBJALTER) authority for each of the files specified for the PFILE or JFILE keywords in DDS.
|
|
<p>To create a non-keyed logical file, only *OBJOPR authority is required.
|
|
</p>
|
|
</li>
|
|
<li>This command is conditionally threadsafe. In multithreaded jobs, this command is not threadsafe for distributed files and fails for distributed files that use relational databases of type *SNA.
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="CRTLF.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="#CRTLF.FILE"><b>FILE</b></a></td>
|
|
<td valign="top">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: 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>*CURLIB</u></b></td>
|
|
</tr><tr>
|
|
<td valign="top" rowspan="3"><a href="#CRTLF.SRCFILE"><b>SRCFILE</b></a></td>
|
|
<td valign="top">Source file</td>
|
|
<td valign="top"><i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional, Positional 2</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Source file</td>
|
|
<td valign="top"><i>Name</i>, <b><u>QDDSSRC</u></b></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="#CRTLF.SRCMBR"><b>SRCMBR</b></a></td>
|
|
<td valign="top">Source member</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*FILE</u></b></td>
|
|
<td valign="top">Optional, Positional 3</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.GENLVL"><b>GENLVL</b></a></td>
|
|
<td valign="top">Generation severity level</td>
|
|
<td valign="top">0-30, <b><u>20</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.FLAG"><b>FLAG</b></a></td>
|
|
<td valign="top">Flagging severity level</td>
|
|
<td valign="top">0-30, <b><u>0</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.FILETYPE"><b>FILETYPE</b></a></td>
|
|
<td valign="top">File type</td>
|
|
<td valign="top"><b><u>*DATA</u></b>, *SRC</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.MBR"><b>MBR</b></a></td>
|
|
<td valign="top">Member, if desired</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*FILE</u></b>, *NONE</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="5"><a href="#CRTLF.DTAMBRS"><b>DTAMBRS</b></a></td>
|
|
<td valign="top">Physical file data members</td>
|
|
<td valign="top">Single values: <b><u>*ALL</u></b><br>Other values (up to 32 repetitions): <i>Element list</i></td>
|
|
<td valign="top" rowspan="5">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Element 1: Physical file</td>
|
|
<td valign="top">
|
|
<i>Qualified object name</i></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" style="padding-left:10pt">Qualifier 1: Physical file</td>
|
|
<td valign="top"><i>Name</i>, <b><u>QDDSSRC</u></b></td>
|
|
</tr><tr>
|
|
<td valign="top" style="padding-left:10pt">Qualifier 2: Library</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*CURRENT</u></b></td>
|
|
</tr><tr>
|
|
<td valign="top">Element 2: Members</td>
|
|
<td valign="top">
|
|
Single values: <b><u>*NONE</u></b><br>Other values (up to 32 repetitions): <i>Name</i></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.TEXT"><b>TEXT</b></a></td>
|
|
<td valign="top">Text 'description'</td>
|
|
<td valign="top"><i>Character value</i>, <b><u>*SRCMBRTXT</u></b>, *BLANK</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.OPTION"><b>OPTION</b></a></td>
|
|
<td valign="top">Source listing options</td>
|
|
<td valign="top">Values (up to 4 repetitions): *SRC, *NOSRC, *SOURCE, *NOSOURCE, *LIST, *NOLIST, *SECLVL, *NOSECLVL, *EVENTF, *NOEVENTF</td>
|
|
<td valign="top">Optional, Positional 4</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.SYSTEM"><b>SYSTEM</b></a></td>
|
|
<td valign="top">System</td>
|
|
<td valign="top"><b><u>*LCL</u></b>, *RMT, *FILETYPE</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.MAXMBRS"><b>MAXMBRS</b></a></td>
|
|
<td valign="top">Maximum members</td>
|
|
<td valign="top"><i>Integer</i>, <b><u>1</u></b>, *NOMAX</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.ACCPTHSIZ"><b>ACCPTHSIZ</b></a></td>
|
|
<td valign="top">Access path size</td>
|
|
<td valign="top"><b><u>*MAX1TB</u></b>, *MAX4GB</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.PAGESIZE"><b>PAGESIZE</b></a></td>
|
|
<td valign="top">Access path logical page size</td>
|
|
<td valign="top"><b><u>*KEYLEN</u></b>, 8, 16, 32, 64, 128, 256, 512</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.MAINT"><b>MAINT</b></a></td>
|
|
<td valign="top">Access path maintenance</td>
|
|
<td valign="top"><b><u>*IMMED</u></b>, *DLY, *REBLD</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.RECOVER"><b>RECOVER</b></a></td>
|
|
<td valign="top">Access path recovery</td>
|
|
<td valign="top">*NO, *AFTIPL, *IPL</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.FRCACCPTH"><b>FRCACCPTH</b></a></td>
|
|
<td valign="top">Force keyed access path</td>
|
|
<td valign="top"><b><u>*NO</u></b>, *YES</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.UNIT"><b>UNIT</b></a></td>
|
|
<td valign="top">Preferred storage unit</td>
|
|
<td valign="top">1-255, <b><u>*ANY</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#CRTLF.FMTSLR"><b>FMTSLR</b></a></td>
|
|
<td valign="top">Rcd format selector program</td>
|
|
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values: <i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Rcd format selector program</td>
|
|
<td valign="top"><i>Name</i>, <b><u>QDDSSRC</u></b></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="#CRTLF.FRCRATIO"><b>FRCRATIO</b></a></td>
|
|
<td valign="top">Records to force a write</td>
|
|
<td valign="top"><i>Integer</i>, <b><u>*NONE</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.WAITFILE"><b>WAITFILE</b></a></td>
|
|
<td valign="top">Maximum file wait time</td>
|
|
<td valign="top"><i>Integer</i>, <b><u>30</u></b>, *IMMED, *CLS</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.WAITRCD"><b>WAITRCD</b></a></td>
|
|
<td valign="top">Maximum record wait time</td>
|
|
<td valign="top"><i>Integer</i>, <b><u>60</u></b>, *IMMED, *NOMAX</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.SHARE"><b>SHARE</b></a></td>
|
|
<td valign="top">Share open data path</td>
|
|
<td valign="top"><b><u>*NO</u></b>, *YES</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#CRTLF.SRTSEQ"><b>SRTSEQ</b></a></td>
|
|
<td valign="top">Sort sequence</td>
|
|
<td valign="top">Single values: <b><u>*SRC</u></b>, *JOB, *LANGIDSHR, *LANGIDUNQ, *HEX<br>Other values: <i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Sort sequence</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="#CRTLF.LANGID"><b>LANGID</b></a></td>
|
|
<td valign="top">Language ID</td>
|
|
<td valign="top"><i>Character value</i>, <b><u>*JOB</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.LVLCHK"><b>LVLCHK</b></a></td>
|
|
<td valign="top">Record format level check</td>
|
|
<td valign="top"><b><u>*YES</u></b>, *NO</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#CRTLF.AUT"><b>AUT</b></a></td>
|
|
<td valign="top">Authority</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*LIBCRTAUT</u></b>, *ALL, *CHANGE, *EXCLUDE, *USE</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="CRTLF.FILE"></a>
|
|
<h3>File (FILE)</h3>
|
|
<p>Specifies the logical file to be created.
|
|
</p>
|
|
<p>If the file is used in a high-level language program, the file name should be consistent with the naming rules of that language; otherwise, the file must be renamed in the program.
|
|
</p>
|
|
<p>This is a required parameter.
|
|
</p>
|
|
<p><b>Qualifier 1: File</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the logical file.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 2: Library</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*CURLIB</u></b></dt>
|
|
<dd>The file is located in the current library for the job. If no library is specified as the current library for the job, QGPL is used.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the library where the file is located.
|
|
<p>
|
|
<b>Note: </b>If a logical file and the physical file on which it is based are in different libraries, and the logical or physical file does not exist when it is to be restored (such as during disaster recovery or when the files are deleted), the access path is not restored. It is rebuilt. To make it possible for access paths to be restored and not rebuilt, the logical files and the based-on physical files must be in the same library. More information on the restoring of saved access paths is in the Backup and Recovery book, SC41-5304.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.SRCFILE"></a>
|
|
<h3>Source file (SRCFILE)</h3>
|
|
<p>Specifies the source file that contains the data description specifications (DDS) source used to create the logical file.
|
|
</p>
|
|
<p><b>Qualifier 1: Source file</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>QDDSSRC</u></b></dt>
|
|
<dd>The DDS source file QDDSSRC contains the source descriptions used to create the logical file.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the source file that contains the DDS used to create the logical 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 source file. If no library is specified as the current library for the job, QGPL is used.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the library where the source file is located.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.SRCMBR"></a>
|
|
<h3>Source member (SRCMBR)</h3>
|
|
<p>Specifies the name of the source file member that contains the DDS source for the logical file being created.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*FILE</u></b></dt>
|
|
<dd>The source file member name is the same as the name specified for the <b>File (FILE)</b> parameter.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the member in the source file.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.GENLVL"></a>
|
|
<h3>Generation severity level (GENLVL)</h3>
|
|
<p>Specifies the severity level of data description specifications (DDS) messages that cause file creation to fail. This parameter applies only to messages created while processing DDS source files.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>20</u></b></dt>
|
|
<dd>If errors occur in the DDS source file processing with a severity level greater than or equal to 20, the file is not created.
|
|
</dd>
|
|
<dt><b><i>0-30</i></b></dt>
|
|
<dd>Specify the desired severity level value. If 0 is specified, the file is not created. The value specified must be greater than or equal to the value specified for the <b>Flagging severity level (FLAG)</b> parameter.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.FLAG"></a>
|
|
<h3>Flagging severity level (FLAG)</h3>
|
|
<p>Specifies the minimum severity level of messages to be listed.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>0</u></b></dt>
|
|
<dd>All messages are listed.
|
|
</dd>
|
|
<dt><b><i>0-30</i></b></dt>
|
|
<dd>Specify a number indicating the minimum severity of messages to be listed. The value specified must be greater than or equal to the value specified for the <b>Generation severity level (GENLVL)</b> parameter.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.FILETYPE"></a>
|
|
<h3>File type (FILETYPE)</h3>
|
|
<p>Specifies whether each member of the logical file being created contains data records, or contains source records for a program or another file.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*DATA</u></b></dt>
|
|
<dd>The logical file contains data records.
|
|
</dd>
|
|
<dt><b>*SRC</b></dt>
|
|
<dd>The logical file contains source records. This value cannot be specified for join logical files.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.MBR"></a>
|
|
<h3>Logical file member (MBR)</h3>
|
|
<p>Specifies the logical file member to be added when the logical file is created.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*FILE</u></b></dt>
|
|
<dd>The name of the member to be added is the same as the name specified for the <b>File (FILE)</b> parameter.
|
|
</dd>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>No member is added when the file is created.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the logical file member to be added.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.DTAMBRS"></a>
|
|
<h3>Physical file data members (DTAMBRS)</h3>
|
|
<p>Specifies the physical files and members that contain the data associated with the logical file member being added by this command. A logical file member can be based on all (*ALL) of the physical files and members on which the logical file itself is based, or the member can be based on a subset of the total files and members.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>When adding a member to a logical file that is a DDM file, the physical file, if specified, must also be a DDM file with its library and member(s) specified explicitly. *CURRENT is not supported when the logical file is a DDM file.
|
|
</p>
|
|
<p>When a logical file is created, the physical files specified for the PFILE or JFILE DDS keyword are used to create the logical file. If no library name is specified for the physical files on the PFILE or JFILE keyword, the library list (*LIBL) at file creation time is used to find the physical files; the physical files from the library list are used to create the logical file. The qualified physical files from the PFILE or JFILE keyword (regardless of whether a library name was specified or if the library list was used to find the files) are the physical files associated with the logical file. The names of the physical files associated with the logical file are saved in the description of the logical file. When a member is added to the logical file, the DTAMBRS parameter is used to specify the physical file members associated with the logical file member. Each physical file name specified on the DTAMBRS parameter must be the name of a physical file that is associated with the logical file (saved in the description of the logical file).
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*ALL</u></b></dt>
|
|
<dd>The logical file member being added is based on all the physical files and members (that exist at the time this CRTLF command is entered) used by the logical file. At least one member must exist in at least one of the physical files. The physical file names are specified for the PFILE or JFILE parameter in the DDS.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Element 1: Physical file</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b></b></dt>
|
|
<dd>
|
|
<p><b>Qualifier 1: Physical file</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the names of the physical files that contain the data being accessed by the logical file member being added.
|
|
<p>The physical file names must match a name on the PFILE or JFILE keywords in the DDS and cannot be specified more often on the DTAMBRS parameter than on the PFILE or JFILE keywords in the DDS. For join logical files, all physical files specified for the JFILE keyword must be specified for the DTAMBRS parameter and each physical file must contain only one member. If a physical file name is not specified for a physical file that is on a PFILE or JFILE keyword in the DDS, the logical file member is not based on any member of that physical file.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
<dt><b></b></dt>
|
|
<dd>
|
|
<p><b>Qualifier 2: Library</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*CURRENT</u></b></dt>
|
|
<dd>The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
|
|
<p>If a library name is not specified, the current library name (*CURRENT) from the logical file description is used. If the library name is specified, the physical file must be a physical file associated with the logical file. If the logical file is associated with more than one physical file of the same name, the library name must be specified.
|
|
</p>
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the library to be searched.
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
<p><b>Element 2: Member</b>
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NONE</u></b></dt>
|
|
<dd>A member name is not specified.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Other values (up to 32 repetitions)</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the names of the physical file members that contain the data being accessed by the logical file member being added.
|
|
<p>When the FILE parameter specifies a join logical file or an arrival sequence logical file, only one data member must be specified for the DTAMBRS parameter for each physical file that was specified for the PFILE or JFILE keyword in the DDS. *ALL is valid only if each based-on physical file has only one member. If any of the physical files has more than one member, the specific physical file member must be specified for the DTAMBRS parameter.
|
|
</p>
|
|
<p>The same physical file name can be specified more than once on the JFILE keyword. In this case, each occurrence of the file name is treated as a different based-on physical file, and must be specified for the DTAMBRS parameter.
|
|
</p>
|
|
<p>Up to 32 qualified physical file names and physical file member names can be specified. Also, the total number of member names cannot exceed 32. For example, one file can specify 32 members, two files can each have 16 members, or 32 files can each have one member specified.
|
|
</p>
|
|
<p>For DDM file:
|
|
</p>
|
|
<ul>
|
|
<li>The file names specified in the DTAMBRS parameter must be the names of the DDM files that represent the remote based-on physical files. If a member name was specified as part of the remote file name in the DDM file, only that member name can be specified for the DTAMBRS parameter. The member names must be the actual remote file member names.
|
|
</li>
|
|
<li>The based-on physical files must be at the same system location as the logical file to which the member is being added.
|
|
</li>
|
|
<li>When no member name is specified for the remote file name in the DDM file, all members are accessible. When only one member name is specified, only that member is accessible through that DDM file.
|
|
</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.TEXT"></a>
|
|
<h3>Text 'description' (TEXT)</h3>
|
|
<p>Specifies the text that briefly describes the object.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*SRCMBRTXT</u></b></dt>
|
|
<dd>If the source file is a database file, the text is taken from the source file member used to create the file. If the source file is an inline file or a device file, the text is blank.
|
|
</dd>
|
|
<dt><b>*BLANK</b></dt>
|
|
<dd>No text is specified.
|
|
</dd>
|
|
<dt><b><i>character-value</i></b></dt>
|
|
<dd>Specify no more than 50 characters of text, enclosed in apostrophes.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.OPTION"></a>
|
|
<h3>Source listing options (OPTION)</h3>
|
|
<p>Specifies the type of output produced when the file is created. A maximum of four of the following values can be specified in any order on this parameter. If neither or both of the values on an option are specified, the first value listed for the option is used.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>The first values on each option are similar to, but are not actually default values, and therefore, cannot be changed with the CHGCMDDFT (Change Command Default) command.
|
|
</p>
|
|
<p><b>Source Listing Option</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*SRC or *SOURCE</u></b></dt>
|
|
<dd>A printout of the source statements, including a list of errors, is created.
|
|
</dd>
|
|
<dt><b>*NOSRC or *NOSOURCE</b></dt>
|
|
<dd>No printout of the source statements is created unless errors are detected. If errors are detected, they are listed along with the keyword or record format that caused the error.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Program Listing Option</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIST</u></b></dt>
|
|
<dd>An expanded source printout is created, showing a detailed list of the file specifications and the references to other file descriptions.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*NOLIST</b></dt>
|
|
<dd>The expanded source printout is not created.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Second-Level Message Text Option</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NOSECLVL</u></b></dt>
|
|
<dd>The messages section of the data description specifications (DDS) printout does not contain the online help information for messages issued during DDS processing.
|
|
</dd>
|
|
<dt><b>*SECLVL</b></dt>
|
|
<dd>The online help information appears in the DDS printout.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Event File Creation Option</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NOEVENTF</u></b></dt>
|
|
<dd>The compiler does not produce an event file for the CoOperative Development Environment for iSeries (CODE for iSeries) product.
|
|
</dd>
|
|
<dt><b>*EVENTF</b></dt>
|
|
<dd>The compiler produces an event file that can be used by the CODE for iSeries product. The event file is created as a member in the file EVFEVENT in your object library. The CODE for iSeries product uses this file to offer error feedback integrated with the CODE for iSeries editor. This value is normally specified by the CODE for iSeries product on your behalf.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.SYSTEM"></a>
|
|
<h3>System (SYSTEM)</h3>
|
|
<p>Specifies whether the logical file is created on the local system or the remote system.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LCL</u></b></dt>
|
|
<dd>The logical file is created on the local system.
|
|
</dd>
|
|
<dt><b>*RMT</b></dt>
|
|
<dd>The logical file is created on a remote system. The file specified for the <b>File (FILE)</b> parameter must be the name of a DDM file that identifies the remote system and the name of the logical file being created.
|
|
</dd>
|
|
<dt><b>*FILETYPE</b></dt>
|
|
<dd>If the file specified for the FILE parameter does not exist on the system, the logical file is created on the local system. Otherwise, the file on the FILE parameter must be a DDM file, and the logical file is created on a remote system. The DDM file identifies the remote system and the name of the logical file being created.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.MAXMBRS"></a>
|
|
<h3>Maximum members (MAXMBRS)</h3>
|
|
<p>Specifies the maximum number of members that the logical file can contain.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>1</u></b></dt>
|
|
<dd>Only one member can be contained in the file.
|
|
</dd>
|
|
<dt><b>*NOMAX</b></dt>
|
|
<dd>The number of members that can be contained in the file is the system maximum of 32,767 members.
|
|
</dd>
|
|
<dt><b><i>integer</i></b></dt>
|
|
<dd>Specify the maximum number of members that can be contained in the file. Valid values range from 1 through 32767.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.ACCPTHSIZ"></a>
|
|
<h3>Access path size (ACCPTHSIZ)</h3>
|
|
<p>Specifies the maximum size of auxiliary storage that can be occupied by access paths that are associated with join logical files or with files that have keyed sequence access paths.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>For a join logical file, this parameter applies to all join secondary access paths even if the join logical file is not a keyed file.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*MAX1TB</u></b></dt>
|
|
<dd>The access paths associated with this file can occupy a maximum of one terabyte (1,099,511,627,776 bytes) of auxiliary storage.
|
|
</dd>
|
|
<dt><b>*MAX4GB</b></dt>
|
|
<dd>The access paths associated with this file can occupy a maximum of four gigabytes (4,294,966,272 bytes) of auxiliary storage.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.PAGESIZE"></a>
|
|
<h3>Access path logical page size (PAGESIZE)</h3>
|
|
<p>Specifies the access path logical page size that is used when the access path is created.
|
|
</p>
|
|
<p>The access path logical page size is used by the system to determine the size of each page of the index. This logical page size is the amount of bytes of the access path that can be moved into the job's storage pool from the auxiliary storage for a page fault.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*KEYLEN</u></b></dt>
|
|
<dd>The access path logical page size will be determined by the total length of the key, or keys.
|
|
</dd>
|
|
<dt><b>8</b></dt>
|
|
<dd>Logical page size of 8k.
|
|
</dd>
|
|
<dt><b>16</b></dt>
|
|
<dd>Logical page size of 16k.
|
|
</dd>
|
|
<dt><b>32</b></dt>
|
|
<dd>Logical page size of 32k.
|
|
</dd>
|
|
<dt><b>64</b></dt>
|
|
<dd>Logical page size of 64k.
|
|
</dd>
|
|
<dt><b>128</b></dt>
|
|
<dd>Logical page size of 128k.
|
|
</dd>
|
|
<dt><b>256</b></dt>
|
|
<dd>Logical page size of 256k.
|
|
</dd>
|
|
<dt><b>512</b></dt>
|
|
<dd>Logical page size of 512k.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.MAINT"></a>
|
|
<h3>Access path maintenance (MAINT)</h3>
|
|
<p>Specifies, for files with key fields or join logical files, the type of access path maintenance used for all members of the logical file.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*IMMED</u></b></dt>
|
|
<dd>The access path is updated each time a record is changed, added, or deleted from a member. *IMMED must be specified for files that require unique keys.
|
|
</dd>
|
|
<dt><b>*REBLD</b></dt>
|
|
<dd>The access path is completely rebuilt each time a file member is opened. The access path is maintained until the member is closed, then the access path is deleted. *REBLD cannot be specified for files that require unique keys.
|
|
</dd>
|
|
<dt><b>*DLY</b></dt>
|
|
<dd>The maintenance of the access path is delayed until the logical file member is opened. Then the access path is changed only for records that have been added, deleted, or changed since the file was last opened. While the file is open, all changes made to based-on file members are immediately reflected in the access paths of the opened file's own members, no matter what is specified for this parameter. To prevent a long rebuilding time when the file is opened, *DLY should be specified only when the number of changes to the access path between successive open operations are small; that is, when the file is opened frequently or when the key fields in records for this access path change infrequently. *DLY is not valid for access paths that require unique key values.
|
|
<p>If the number of changes between a close operation and the next open operation reaches approximately 10 percent of the access path size, the system stops saving changes and the access path is completely rebuilt the next time the file is opened. The access path is updated when the member is opened with records that have been added, deleted, or changed from the member since the last time the member was opened.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.RECOVER"></a>
|
|
<h3>Access path recovery (RECOVER)</h3>
|
|
<p>Specifies, for files having immediate or delayed maintenance on their access paths, when recovery processing of the file is performed after a system failure occurs while the access path is being changed. This parameter is valid only for join logical files or files with a keyed access path.
|
|
</p>
|
|
<p>If *IMMED or *DLY is specified for the <b>Access path maintenance (MAINT)</b> parameter, the access path can be rebuilt during initial program load (IPL) (before any user can run a job), after IPL has ended (during concurrent job running), or when the file is next opened. While the access path is being rebuilt, the file cannot be used by any job.
|
|
</p>
|
|
<p>During the IPL, an Override Access Path Recovery display lists those paths that must be recovered and what the RECOVER parameter value is for each path. The user can override the RECOVER parameter value on this display. More information is in the Backup and Recovery book, SC41-5304.
|
|
</p>
|
|
<p>If *REBLD is specified for the MAINT parameter, the access path is rebuilt the next time its file is opened.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*NO</b></dt>
|
|
<dd>The access path of the file is rebuilt when the file is opened. *NO is the default for all files that do not require unique keys.
|
|
</dd>
|
|
<dt><b>*AFTIPL</b></dt>
|
|
<dd>The access path of the file is rebuilt after the initial program load (IPL) operation is completed. This option allows other jobs not using this file to start processing immediately after the completion of IPL. If a job tries to allocate the file while its access path is being rebuilt, a file open exception occurs. *AFTIPL is the default for files that require unique keys.
|
|
</dd>
|
|
<dt><b>*IPL</b></dt>
|
|
<dd>The access path of the file is rebuilt during the IPL operation. This ensures that the file's access path is rebuilt before the first user program tries to use it; however, no jobs can start running until after all files that specify RECOVER(*IPL) have their access paths rebuilt.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.FRCACCPTH"></a>
|
|
<h3>Force keyed access path (FRCACCPTH)</h3>
|
|
<p>Specifies, for files with key fields or a join logical file, whether access path changes are forced to auxiliary storage along with the associated records in the file. FRCACCPTH(*YES) minimizes (but does not remove) the possibility that an abnormal job end could cause damage to the access path that would require it to be rebuilt.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>For a join logical file, this parameter value applies to all join secondary files even if the join file is not a keyed file.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NO</u></b></dt>
|
|
<dd>The access path and associated records are not written to auxiliary storage whenever the access path is changed.
|
|
</dd>
|
|
<dt><b>*YES</b></dt>
|
|
<dd>The access path and associated records are written to auxiliary storage whenever the access path is changed. *YES cannot be specified if *REBLD is specified for the <b>Access path maintenance (MAINT)</b> parameter.
|
|
<p>FRCACCPTH(*YES) slows the response time of the system if the access path is changed in an interactive job. If the access path is changed frequently, the overall performance of the system is affected somewhat.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.UNIT"></a>
|
|
<h3>Preferred storage unit (UNIT)</h3>
|
|
<p>This parameter is no longer supported. It exists solely for compatibility with releases earlier than Version 3 Release 6 Modification 0 of the OS/400 operating system. For information on using auxiliary storage pools (ASPs), refer to the Backup and Recovery book, SC41-5304.
|
|
</p>
|
|
<p>You can specify the value *ANY or a value ranging from 1 through 255 on this parameter.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.FMTSLR"></a>
|
|
<h3>Rcd format selector program (FMTSLR)</h3>
|
|
<p>Specifies the record format selector program that is called when the logical file member contains more than one logical record format.
|
|
</p>
|
|
<p>The user-written selector program is called when a record is written to the database file and a record format name is not included in the high-level language program. The selector program receives the record as input, determines the record format used, and returns it to the database.
|
|
</p>
|
|
<p>This parameter is not valid if the logical file has only one record format.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NONE</u></b></dt>
|
|
<dd>There is no selector program for this logical file.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 1: Rcd format selector program</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>QDDSSRC</u></b></dt>
|
|
<dd>The format selector program name is QDDSSRC.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the format selector program to be called. A program specified as the format selector program cannot be created with *OWNER specified for the <b>User profile (USRPRF)</b> parameter.
|
|
</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 is used to locate the program name. If no library is specified as the current library for the job, QGPL is used.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the library where the program is located.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.FRCRATIO"></a>
|
|
<h3>Records to force a write (FRCRATIO)</h3>
|
|
<p>Specifies the number of inserted or updated records that are processed before the records are forced into auxiliary storage.
|
|
</p>
|
|
<p>The force write ratio specified for a logical file cannot be less than or equal to the smallest force write ratio of its based-on files. If a larger force write ratio is specified, it is ignored and a message is sent informing the user of the action.
|
|
</p>
|
|
<p>For example, if the force ratios of three physical files are 2, 6, and 8, the logical file force ratio that is based on these three physical files must be as restrictive as the least of them; that is 2 in this case. Two would be used even if the FRCRATIO parameter is not specified. Thus, each time a program inserts, updates, or deletes two records in the logical file (regardless of which based-on physical files are affected), those records are forced to permanent storage.
|
|
</p>
|
|
<p>If a physical file associated with this logical file is being journaled, a large force write ratio or *NONE is specified. More information on journal management is in the Backup and Recovery book, SC41-5304.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NONE</u></b></dt>
|
|
<dd>There is no specified force ratio. The system determines when the records are written to auxiliary storage.
|
|
</dd>
|
|
<dt><b><i>integer</i></b></dt>
|
|
<dd>Specify the number of inserted or updated records that are processed before the records are written to auxiliary storage.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.WAITFILE"></a>
|
|
<h3>Maximum file wait time (WAITFILE)</h3>
|
|
<p>Specifies the number of seconds that the program waits for the file resources to be allocated when the file is opened, or the device or session resources to be allocated when an acquire operation is performed to the file. If the file resources cannot be allocated in the specified wait time, an error message is sent to the program.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*IMMED</u></b></dt>
|
|
<dd>The program does not wait. Immediate allocation of file resources is required.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*CLS</b></dt>
|
|
<dd>The job default wait time is used as the wait time for the file resources to be allocated.
|
|
</dd>
|
|
<dt><b><i>1-32767</i></b></dt>
|
|
<dd>Specify the number of seconds to wait for file resources to be allocated.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.WAITRCD"></a>
|
|
<h3>Maximum record wait time (WAITRCD)</h3>
|
|
<p>Specifies the number of seconds that the program waits for a record being changed or deleted. If the record cannot be allocated within the specified wait time, an error message is sent to the program.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>60</u></b></dt>
|
|
<dd>The program waits for 60 seconds for a record being changed or deleted.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*IMMED</b></dt>
|
|
<dd>The program does not wait. Immediate allocation of file resources is required.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*NOMAX</b></dt>
|
|
<dd>The wait time is the maximum allowed by the system, which is 32767 seconds.
|
|
</dd>
|
|
<dt><b><i>integer</i></b></dt>
|
|
<dd>Specify the number of seconds that the program waits for a record being changed or deleted. Valid values range from 1 through 32767 seconds.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.SHARE"></a>
|
|
<h3>Share open data path (SHARE)</h3>
|
|
<p>Specifies whether the open data path (ODP) is shared with other programs in the same routing step. When an ODP is shared, the programs accessing the file share facilities such as the file status and the buffer.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>This parameter is not valid when *NONE is specified for the <b>Logical file member (MBR)</b> parameter.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NO</u></b></dt>
|
|
<dd>The ODP is not shared with other programs in the routing step. A new ODP for the file is created and used every time a program opens the file.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*YES</b></dt>
|
|
<dd>The same ODP is shared with each program in the job that also specifies *YES when it opens the file.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.SRTSEQ"></a>
|
|
<h3>Sort sequence (SRTSEQ)</h3>
|
|
<p>Specifies the sort sequence used for this file. The sort sequence is used with the LANGID parameter to determine which sort sequence table is used.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*SRC</u></b></dt>
|
|
<dd>The table specified in the data description specifications (DDS) on the ALTSEQ keyword is used. If ALTSEQ is not used in the DDS, use the value specified for *JOB on this parameter.
|
|
</dd>
|
|
<dt><b>*JOB</b></dt>
|
|
<dd>The sort sequence value used is the value for the job issuing this command to create the logical file.
|
|
</dd>
|
|
<dt><b>*LANGIDSHR</b></dt>
|
|
<dd>The sort sequence table can contain the same weight for multiple characters, and is the shared weighted table associated with the language specified in the LANGID parameter.
|
|
</dd>
|
|
<dt><b>*LANGIDUNQ</b></dt>
|
|
<dd>The sort sequence table must contain a unique weight for each character in the code page.
|
|
</dd>
|
|
<dt><b>*HEX</b></dt>
|
|
<dd>A sort sequence table is not used, and the hexadecimal values of the characters are used to determine the sort sequence.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 1: Sort sequence</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the sort sequence table.
|
|
</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 searched. If no library is specified as the current library for the job, the QGPL library is used.
|
|
</dd>
|
|
<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="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.LANGID"></a>
|
|
<h3>Language ID (LANGID)</h3>
|
|
<p>Specifies the language identifier used when *LANGIDSHR or *LANGIDUNQ is specified for the <b>Sort sequence (SRTSEQ)</b> parameter. The language identifier is used with the SRTSEQ parameter to determine which sort sequence table the file uses.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*JOB</u></b></dt>
|
|
<dd>The language identifier specified for the job is used.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b><i>character-value</i></b></dt>
|
|
<dd>Specify a language identifier. To see a complete list of identifiers when prompting this command, position the cursor on the field for this parameter and press F4 (Prompt).
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.LVLCHK"></a>
|
|
<h3>Record format level check (LVLCHK)</h3>
|
|
<p>Specifies whether the level identifiers of the record formats in the logical file are checked when the file is opened by a program.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*YES</u></b></dt>
|
|
<dd>The level identifiers of the record formats are checked. If the level identifiers do not all match, an open error message is sent to the program requesting the open operation.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*NO</b></dt>
|
|
<dd>The level identifiers are not checked when the file is opened.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CRTLF.AUT"></a>
|
|
<h3>Authority (AUT)</h3>
|
|
<p>Specifies the authority you are giving to users who do not have specific authority for the object, who are not on an authorization list, and whose group profile or supplemental group profiles do not have specific authority for the object.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBCRTAUT</u></b></dt>
|
|
<dd>The system determines the authority for the object by using the value specified for the <b>Create authority (CRTAUT)</b> parameter on the Create Library command (CRTLIB) for the library containing the object to be created. If the value specified for the CRTAUT parameter is changed, the new value will not affect any existing objects.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*CHANGE</b></dt>
|
|
<dd>The user can perform all operations on the object except those limited to the owner or controlled by object existence (*OBJEXIST) and object management (*OBJMGT) authorities. The user can change and perform basic functions on the object. *CHANGE authority provides object operational (*OBJOPR) authority and all data authority. If the object is an authorization list, the user cannot add, change, or remove users.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*ALL</b></dt>
|
|
<dd>The user can perform all operations except those limited to the owner or controlled by authorization list management (*AUTLMGT) authority. The user can control the object's existence, specify the security for the object, change the object, and perform basic functions on the object. The user also can change ownership of the object.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*USE</b></dt>
|
|
<dd>The user can perform basic operations on the object, such as running a program or reading a file. The user cannot change the object. Use (*USE) authority provides object operational (*OBJOPR), read (*READ), and execute (*EXECUTE) authorities.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*EXCLUDE</b></dt>
|
|
<dd>The user cannot access the object.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of an authorization list to be used for authority to the object. Users included in the authorization list are granted authority to the object as specified in the list. The authorization list must exist when the object is created.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="CRTLF.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p><b>Example 1: Creating a Logical File Without Members</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
CRTLF FILE(INVEN/STOCKCTL) SRCFILE(SRCLIB/STKLFSRC)
|
|
MBR(*NONE)
|
|
</pre>
|
|
</p>
|
|
<p>This command creates a logical file named STOCKCTL, in the INVEN library. The source descriptions in the source file STKLFSRC in the SRCLIB library are used to create the logical file. The file is created without any members (*NONE was specified), and only one member can be added later (because one member is the default for the MAXMBRS parameters). The logical file accesses the data contained in the physical files specified in the DDS source file used to create this logical file. For successful completion of the CRTLF command, the user must have object operational authority for all the physical files specified in the DDS. If the logical file is keyed, object management authority is also required.
|
|
</p>
|
|
<p><b>Example 2: Creating a Logical File With Members</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
CRTLF FILE(PAYLIB/PAYCODESEQ) SRCFILE(PAYLIB/PAYTXSRC)
|
|
DTAMBRS(PAYTRANS FIRSTQTR) AUT(*EXCLUDE)
|
|
TEXT('Pay taxes in code sequence')
|
|
</pre>
|
|
</p>
|
|
<p>This command creates a logical file and logical file member, both named PAYCODESEQ in the PAYLIB library. The file and its member are created from the PAYTXSRC source file that is in the same library. The logical file member accesses the data contained in the FIRSTQTR member of the physical file PAYTRANS. The logical file is secured for the private use of the owner. The owner must have object operational authority for the PAYTRANS file to create the member. If the logical file is keyed, object management authority is also required.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="CRTLF.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPF3204</b></dt>
|
|
<dd>Cannot find object needed for file &1 in &2.
|
|
</dd>
|
|
<dt><b>CPF323C</b></dt>
|
|
<dd>QRECOVERY library could not be allocated.
|
|
</dd>
|
|
<dt><b>CPF5702</b></dt>
|
|
<dd>File either not DDM file or not found.
|
|
</dd>
|
|
<dt><b>CPF7302</b></dt>
|
|
<dd>File &1 not created in library &2.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CRTLF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|