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

605 lines
24 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Change Logical File (CHGLF)</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="CHGLF.Top_Of_Page"></a>
<h2>Change Logical File (CHGLF)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#CHGLF.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CHGLF.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CHGLF.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CHGLF"></a>
<p>The Change Logical File (CHGLF) command changes the attributes of a logical file and its members. The changed attributes are used for all members subsequently added to the file unless other values are specified or default for the add operation. To change the attributes of a specific member, use the Change Logical File Member (CHGLFM) command.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CHGLF.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="#CHGLF.FILE"><b>FILE</b></a></td>
<td valign="top">Logical file</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Required, Key, Positional 1</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Logical 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="#CHGLF.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, Key</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLF.FRCRBDAP"><b>FRCRBDAP</b></a></td>
<td valign="top">Force rebuild of 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="#CHGLF.MAXMBRS"><b>MAXMBRS</b></a></td>
<td valign="top">Maximum members</td>
<td valign="top"><i>Integer</i>, <b><u>*SAME</u></b>, *NOMAX</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLF.ACCPTHSIZ"><b>ACCPTHSIZ</b></a></td>
<td valign="top">Access path size</td>
<td valign="top"><b><u>*SAME</u></b>, *MAX4GB, *MAX1TB</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLF.MAINT"><b>MAINT</b></a></td>
<td valign="top">Access path maintenance</td>
<td valign="top"><b><u>*SAME</u></b>, *IMMED, *REBLD, *DLY</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLF.RECOVER"><b>RECOVER</b></a></td>
<td valign="top">Access path recovery</td>
<td valign="top"><b><u>*SAME</u></b>, *NO, *AFTIPL, *IPL</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLF.FRCACCPTH"><b>FRCACCPTH</b></a></td>
<td valign="top">Force keyed access path</td>
<td valign="top"><b><u>*SAME</u></b>, *NO, *YES</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLF.UNIT"><b>UNIT</b></a></td>
<td valign="top">Preferred storage unit</td>
<td valign="top">1-255, <b><u>*SAME</u></b>, *ANY</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#CHGLF.FMTSLR"><b>FMTSLR</b></a></td>
<td valign="top">Rcd format selector program</td>
<td valign="top">Single values: <b><u>*SAME</u></b>, *NONE<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></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="#CHGLF.FRCRATIO"><b>FRCRATIO</b></a></td>
<td valign="top">Records to force a write</td>
<td valign="top"><i>Integer</i>, <b><u>*SAME</u></b>, *NONE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLF.WAITFILE"><b>WAITFILE</b></a></td>
<td valign="top">Maximum file wait time</td>
<td valign="top"><i>Integer</i>, <b><u>*SAME</u></b>, *IMMED, *CLS</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLF.WAITRCD"><b>WAITRCD</b></a></td>
<td valign="top">Maximum record wait time</td>
<td valign="top"><i>Integer</i>, <b><u>*SAME</u></b>, *IMMED, *NOMAX</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLF.SHARE"><b>SHARE</b></a></td>
<td valign="top">Share open data path</td>
<td valign="top"><b><u>*SAME</u></b>, *NO, *YES</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLF.LVLCHK"><b>LVLCHK</b></a></td>
<td valign="top">Record format level check</td>
<td valign="top"><b><u>*SAME</u></b>, *YES, *NO</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGLF.TEXT"><b>TEXT</b></a></td>
<td valign="top">Text 'description'</td>
<td valign="top"><i>Character value</i>, <b><u>*SAME</u></b>, *BLANK</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CHGLF.FILE"></a>
<h3>Logical file (FILE)</h3>
<p>Specifies the logical file to be changed.
</p>
<p>This is a required parameter.
</p>
<p>
<b>Note: </b>If a Distributed Data Management (DDM) file is specified, the logical file and the remote system are contained in the DDM file. For more information, see the <b>System (SYSTEM)</b> parameter description.
</p>
<p><b>Qualifier 1: Logical 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>*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="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.SYSTEM"></a>
<h3>System (SYSTEM)</h3>
<p>Specifies whether the logical file is changed on the local system or on a remote system.
</p>
<dl>
<dt><b><u>*LCL</u></b></dt>
<dd>The logical file is changed on the local system.
</dd>
<dt><b>*RMT</b></dt>
<dd>The logical file is changed on a remote system using distributed data management (DDM). The logical file name specified for the <b>Logical file (FILE)</b> parameter must be the name of the DDM file (created using the CRTDDMF command). The DDM file contains the name of the logical file to be changed and the name of the remote system on which the file is to be changed.
</dd>
<dt><b>*FILETYPE</b></dt>
<dd>If the name specified on the FILE parameter is a DDM file, the logical file is changed on the remote system specified by the <b>Remote location (RMTLOCNAME)</b> parameter of the CRTDDMF command for the DDM file. If the name specified on the FILE parameter is not a DDM file, the logical file on the local system is changed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.FRCRBDAP"></a>
<h3>Force rebuild of access path (FRCRBDAP)</h3>
<p>Specifies whether to force the rebuild of 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>*NO</u></b></dt>
<dd>The access paths will not explicitly be marked as having to be rebuilt.
</dd>
<dt><b>*YES</b></dt>
<dd>The access paths will be marked invalid and will be rebuilt asynchronously by the database server job.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.MAXMBRS"></a>
<h3>Maximum members (MAXMBRS)</h3>
<p>Specifies the maximum number of members that the logical file can have at any time. The maximum number of members specified must be greater than or equal to the current number of members in the file.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The maximum number of members does not change.
</dd>
<dt><b>*NOMAX</b></dt>
<dd>No maximum is specified for the number of members; the system maximum of 32767 members per file is used.
</dd>
<dt><b><i>integer</i></b></dt>
<dd>Specify the value for the maximum number of members that the logical file can have. Valid values range from 1 through 32767.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.ACCPTHSIZ"></a>
<h3>Access path size (ACCPTHSIZ)</h3>
<p>Specifies the maximum size of auxiliary storage that can be occupied by the following kinds of access paths:
</p>
<ul>
<li>The access paths that are associated with a database file that has a keyed sequence access path.
</li>
<li>The access paths that are created for referential or unique constraints, and that can be added to this file with the Add Physical File Constraint (ADDPFCST) command.
</li>
</ul>
<p>Changing the value for this file causes the access paths that are owned by the file to be rebuilt.
</p>
<p>
<b>Note: </b>This parameter does not apply to access paths that are created for queries that refer to the data in the file.
</p>
<p><b><u>Performance Tip</u></b>
</p>
<p>For optimum performance, consider whether there is high contention for keys within the access path when selecting the value on this parameter:
</p>
<ul>
<li>When there is little or no contention for keys, specifying the *MAX4GB value generally provides better performance.
</li>
<li>When there is high contention for keys, specifying the *MAX1TB value generally provides better performance.
</li>
</ul>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<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. This value provides compatibility with releases of the operating system earlier than Version 3 Release 6 Modification 0.
</dd>
<dt><b>*MAX1TB</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>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.MAINT"></a>
<h3>Access path maintenance (MAINT)</h3>
<p>Specifies the type of access path maintenance used for all members of the logical file. This parameter is valid only for keyed files or join files.
</p>
<p>
<b>Note: </b>For a join logical file, this parameter applies to all join secondary access paths, even if the join file is not a keyed file.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The files access path maintenance does not change.
</dd>
</dl>
<dl>
<dt><b>*IMMED</b></dt>
<dd>The access path is continuously (immediately) maintained for each logical file member. The access path is changed each time a record is changed, added to, or deleted from the member. The records are changed through a logical file that uses the physical file member containing the data regardless of whether the logical file is opened or closed. *IMMED is specified for all files requiring unique keys to ensure uniqueness in all inserts and update operations.
</dd>
</dl>
<dl>
<dt><b>*REBLD</b></dt>
<dd>The access path is rebuilt when a file member is opened. The access path is continuously maintained until the member is closed; then access path maintenance is ended. *REBLD is not valid for access paths that contain unique key values.
</dd>
<dt><b>*DLY</b></dt>
<dd>The maintenance of the access path is delayed until the member is opened for use. Then the access path is changed only for records that are added, deleted, or changed since the file was last closed. *DLY is not valid for access paths that require unique key values.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.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 done if a system failure occurs while the access path is being changed. This parameter is valid only if a keyed access path is used.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The recovery attribute of the file does not change.
</dd>
<dt><b>*NO</b></dt>
<dd>The access path of the file is not rebuilt. The file's access path, if not valid, is rebuilt when the file is opened.
</dd>
<dt><b>*AFTIPL</b></dt>
<dd>The file has its access path rebuilt after the IPL operation is completed. This option allows other jobs not using this file to begin processing immediately after the IPL is completed.
</dd>
<dt><b>*IPL</b></dt>
<dd>The file has its access path 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 are started until after all files that specify *IPL have their access paths rebuilt.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.FRCACCPTH"></a>
<h3>Force keyed access path (FRCACCPTH)</h3>
<p>Specifies, for files with keyed access paths only, whether access path changes are forced to auxiliary storage along with the associated records in the file. Specifying *YES minimizes (but does not remove) the chance that an abnormal end will cause damage to the access path, which then requires it to be rebuilt.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The force access path attribute of the file does not change.
</dd>
<dt><b>*NO</b></dt>
<dd>The changed access path and changed records are not forced to auxiliary storage whenever the access path is changed.
</dd>
<dt><b>*YES</b></dt>
<dd>The changed access path and changed records are forced to auxiliary storage whenever the access path is changed. If this value is specified, *REBLD must not be specified for the <b>Access path maintenance (MAINT)</b> parameter.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.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 OS/400. For information on using auxiliary storage pools (ASPs), refer to the Backup and Recovery book, SC41-5304.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.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. The user-written selector program is called when a record is inserted into the database file and a record format name is not included in the high-level-language program. 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>*SAME</u></b></dt>
<dd>The selector program called does not change.
</dd>
<dt><b>*NONE</b></dt>
<dd>There is no selector program for this logical file. The file cannot have more than one logical record format, or the high-level-language program itself must specify the record format name.
</dd>
</dl>
<p><b>Qualifier 1: Rcd format selector program</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the format selector program called when a record is inserted into a member having more than one format.
</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 program. If no library is specified as the current library for the job, 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="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.FRCRATIO"></a>
<h3>Records to force a write (FRCRATIO)</h3>
<p>Specifies the number of inserted, changed, or deleted records that are processed before they are forced to auxiliary (permanent) storage. The force write ratio specified for a logical file is less than or equal to the smallest force write ratio of its physical files. If a larger force write ratio is specified, it is ignored and a message is sent informing you of the action. If a physical file associated with this logical file is being recorded in the journal, it is recommended that a larger force write ratio, or *NONE, be specified.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The files force write ratio does not change.
</dd>
<dt><b>*NONE</b></dt>
<dd>There is no force write 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 new or changed records that are processed before those records are forced into auxiliary storage.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.WAITFILE"></a>
<h3>Maximum file wait time (WAITFILE)</h3>
<p>Specifies the number of seconds that the program waits for the file resources and session resources to be allocated when the file is opened, or for the device or session resources to be allocated when an acquire operation is performed to the file. If the file resources are not allocated in the specified wait time, an error message is sent to the program.
</p>
<p>
<b>Note: </b>An immediate allocation of the device by the device resource is required when an acquire operation is performed to the file.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The wait attribute of the file does not change.
</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>*CLS</b></dt>
<dd>The default wait time specified in the class description is used as the wait time for the file resources that are allocated.
</dd>
</dl>
<dl>
<dt><b><i>1-32767</i></b></dt>
<dd>Specify the number of seconds that the program waits for the file resources to be allocated.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.WAITRCD"></a>
<h3>Maximum record wait time (WAITRCD)</h3>
<p>Specifies the number of seconds that the program waits for a record that is changed or deleted. If the record is not allocated in the specified wait time, an error message is sent to the program.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The record wait attribute of the file does not change.
</dd>
</dl>
<dl>
<dt><b>*IMMED</b></dt>
<dd>The program does not wait; when a record is locked, an immediate allocation of the record is required.
</dd>
</dl>
<dl>
<dt><b>*NOMAX</b></dt>
<dd>The wait time is the maximum allowed by the system (32,767 seconds).
</dd>
</dl>
<dl>
<dt><b><i>1-32767</i></b></dt>
<dd>Specify the number of seconds that the program waits for the file resources to be allocated.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.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>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The ODP sharing value of the member does not change.
</dd>
</dl>
<dl>
<dt><b>*NO</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>
</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>
<dl>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.LVLCHK"></a>
<h3>Record format level check (LVLCHK)</h3>
<p>Specifies whether the record format level identifiers in the program are checked against those in the logical file when the file is opened. If so, the record format identifiers in the program must match those in the logical file. This value can be overridden by the Override with Database File (OVRDBF) command at run time.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The level check value of the member does not change.
</dd>
<dt><b>*YES</b></dt>
<dd>The level identifiers of the record formats are checked when the file is opened. If the level identifiers do not match, an error message is sent to the program requesting the open operation, and the file is not opened.
</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="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGLF.TEXT"></a>
<h3>Text 'description' (TEXT)</h3>
<p>Specifies the text that briefly describes the object.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The text that describes the file does not change.
</dd>
<dt><b>*BLANK</b></dt>
<dd>No text is specified.
</dd>
</dl>
<dl>
<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="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGLF.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Changing the Format Selector Program</b>
</p>
<p>
<pre>
CHGLF FILE(QGPL/INV) FMTSLR(INVFMTS)
</pre>
</p>
<p>This command changes the logical file INV that is stored in the QGPL library, resulting in the new format selector program, INVFMTS, which is being used with the logical file. *LIBL is used to find the format selector program.
</p>
<p><b>Example 2: Changing a File Located on the Remote System</b>
</p>
<p>
<pre>
CHGLF FILE(QGPL/DDMF) FMTSLR(INVFMTS) SYSTEM(*RMT)
</pre>
</p>
<p>This command changes the format selector program for file INV located in the QGPL library on the remote system. Prior to specifying this command, this user had created a DDMF file by specifying the command CRTDDMF FILE(QGPL/DDMF) RMTFILE(QGPL/INV) RMTLOCNAME(AS400).
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGLF.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF326A</b></dt>
<dd>Operation not successful for file &amp;1 in library &amp;2.
</dd>
<dt><b>CPF327F</b></dt>
<dd>Operation not successful for file &amp;1 in library &amp;2.
</dd>
<dt><b>CPF7304</b></dt>
<dd>File &amp;1 in &amp;2 not changed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGLF.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>