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

681 lines
28 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 Source Physical File (CHGSRCPF)</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="CHGSRCPF.Top_Of_Page"></a>
<h2>Change Source Physical File (CHGSRCPF)</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="#CHGSRCPF.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CHGSRCPF.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CHGSRCPF.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CHGSRCPF"></a>
<p>The Change Source Physical File (CHGSRCPF) command changes the attributes of a source physical file and all 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.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>To change a source physical file, you must have object management (*OBJMGT) authority or object alter (*OBJALTER) authority to the file and execute (*EXECUTE) authority to the library.
</li>
<li>To change the file, an exclusive lock is necessary; no one may be using the file for any purpose.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CHGSRCPF.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="#CHGSRCPF.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, Key, 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="#CHGSRCPF.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="#CHGSRCPF.EXPDATE"><b>EXPDATE</b></a></td>
<td valign="top">Expiration date for member</td>
<td valign="top"><i>Date</i>, <b><u>*SAME</u></b>, *NONE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGSRCPF.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="#CHGSRCPF.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="#CHGSRCPF.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="#CHGSRCPF.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="#CHGSRCPF.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" rowspan="4"><a href="#CHGSRCPF.SIZE"><b>SIZE</b></a></td>
<td valign="top">Member size</td>
<td valign="top">Single values: *NOMAX<br>Other values: <i>Element list</i></td>
<td valign="top" rowspan="4">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Initial number of records</td>
<td valign="top">
1-2147483646, <b><u>*SAME</u></b></td>
</tr>
<tr>
<td valign="top">Element 2: Increment number of records</td>
<td valign="top">
0-32767, <b><u>*SAME</u></b></td>
</tr>
<tr>
<td valign="top">Element 3: Maximum increments</td>
<td valign="top">
0-32767, <b><u>*SAME</u></b></td>
</tr>
<tr>
<td valign="top"><a href="#CHGSRCPF.ALLOCATE"><b>ALLOCATE</b></a></td>
<td valign="top">Allocate storage</td>
<td valign="top">*NO, *YES, <b><u>*SAME</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGSRCPF.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"><a href="#CHGSRCPF.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="#CHGSRCPF.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="#CHGSRCPF.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="#CHGSRCPF.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="#CHGSRCPF.DLTPCT"><b>DLTPCT</b></a></td>
<td valign="top">Max % deleted records allowed</td>
<td valign="top">1-100, *NONE, <b><u>*SAME</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGSRCPF.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>
<tr>
<td valign="top"><a href="#CHGSRCPF.CCSID"><b>CCSID</b></a></td>
<td valign="top">Coded character set ID</td>
<td valign="top">1-65535, <b><u>*SAME</u></b>, *HEX</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CHGSRCPF.FILE"></a>
<h3>Physical file (FILE)</h3>
<p>Specifies the physical file to be changed.
</p>
<p>
<b>Note: </b>If a Distributed Data Management (DDM) file is specified, the name of the physical file to be changed and the name of the remote system on which the file is to be changed are contained in the DDM file. For more information, see the <b>System (SYSTEM)</b> parameter of this command.
</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 the 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 thread is used to locate the file. If no library is specified as the current library for the job, the QGPL library 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="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.SYSTEM"></a>
<h3>System (SYSTEM)</h3>
<p>Specifies whether the physical file is changed on the local system or the remote system.
</p>
<dl>
<dt><b><u>*LCL</u></b></dt>
<dd>The physical file is changed on the local system.
</dd>
<dt><b>*RMT</b></dt>
<dd>The physical file is changed on a remote system using distributed data management (DDM). The physical file name specified on the <b>Physical file (FILE)</b> parameter must be the name of the DDM file that identifies the name of the physical 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 physical file is changed on the remote system specified by the <b>Remote location (RMTLOCNAME)</b> parameter of the DDM file. If the name specified on the FILE parameter is not a DDM file, the physical file on the local system with that name is changed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.EXPDATE"></a>
<h3>Expiration date for member (EXPDATE)</h3>
<p>Specifies the expiration date of all the file's members. If an expiration date is specified, all members in the file are changed. You can specify a new expiration date for a member that has exceeded its expiration date by changing this parameter. The expiration date must be later than or equal to the current date.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The expiration date of the file does not change.
</dd>
<dt><b>*NONE</b></dt>
<dd>No expiration date is specified.
</dd>
<dt><b><i>date</i></b></dt>
<dd>Specify the date after which the file members should not be used. The date must be specified in the job-date format.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.MAXMBRS"></a>
<h3>Maximum members (MAXMBRS)</h3>
<p>Specifies the maximum number of members that the physical 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 in the file does not change.
</dd>
<dt><b>*NOMAX</b></dt>
<dd>No maximum is specified for the number of members; the system maximum of 32,767 members per file is used.
</dd>
<dt><b><i>integer</i></b></dt>
<dd>Specify the maximum number of members that the physical file can have. Valid values range from 1 through 32767.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.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="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.MAINT"></a>
<h3>Access path maintenance (MAINT)</h3>
<p>Specifies the type of access path maintenance used for all members of the physical file. This parameter is valid only if the file has a keyed access path.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The access path maintenance of the file does not change.
</dd>
<dt><b>*IMMED</b></dt>
<dd>The access path is continuously (immediately) maintained for each physical file member. The path is changed each time a record is changed, added to, or deleted from the member. *IMMED is specified for all files requiring unique keys to ensure uniqueness in all inserts and changes.
</dd>
<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 the 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 were added, deleted, or changed since the file was last closed. (While the file is open, all changes made to based-on members are immediately reflected in the access paths of the members of the opened files, no matter what is specified for the <b>Access path maintenance (MAINT)</b> parameter.) To prevent a lengthy rebuild time when the file is opened, *DLY should be specified only when the number of changes to the access path between a close operation and the next open operation are small (when 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% of the access path size, the system stops saving changes and the access path is completely rebuilt the next time the file is opened.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.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="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.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="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.SIZE"></a>
<h3>Member size (SIZE)</h3>
<p>Specifies the initial number of records in each member of the file, the number of records in each part that is automatically added to the member size, and the number of times the part added is automatically applied.
</p>
<p>The change in the initial number of records takes effect when a new member is added to the file or when a current member is cleared, restored, or reorganized. A change to the number of records to add, and the number of times the part added is automatically applied, takes effect the next time a member of the file needs a part added.
</p>
<p>The total size of the member (initial part added plus the number of records added per part added times the number of additions) must be larger than the current size of the member. If it is smaller than the current size of the member, an error message is sent, and the size does not change.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b>*NOMAX</b></dt>
<dd>The number of records inserted into each member of the file is not limited by the user. The maximum size of each member is determined by the system. If *YES is in effect for the ALLOCATE attribute of the physical file, this option cannot be specified
</dd>
</dl>
<p><b>Element 1: Initial number of records</b>
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change does not change.
</dd>
</dl>
<dl>
<dt><b><i>1-2147483646</i></b></dt>
<dd>Specify the number of records that can be inserted before an automatic extension occurs. If automatic extensions are not wanted, enter zeros for the second and third values in the list.
</dd>
</dl>
<p><b>Element 2: Increment number of records</b>
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change does not change.
</dd>
<dt><b><i>0-32767</i></b></dt>
<dd>Specify a value for the number of additional records which, if greater than 10% of the size of the member when the maximum number of records is reached, are to be inserted into the member after an automatic extension occurs.
<p>If the number specified is not greater than 10% of the member size and not equal to zero, the member size is increased by 10%.
</p>
<p>Enter 0 to prevent automatic extensions. If the number of additions is 0, the increment value is 0.
</p>
</dd>
</dl>
<p><b>Element 3: Maximum increments</b>
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change does not change.
</dd>
<dt><b><i>0-32767</i></b></dt>
<dd>Specify the maximum number of parts to be automatically added to the member. Enter 0 to prevent automatic extensions. If the increment value is 0, the number of parts added is also 0.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.ALLOCATE"></a>
<h3>Allocate storage (ALLOCATE)</h3>
<p>Specifies whether the initial storage space is allocated for each physical file member when it is added to the file. This change takes effect the next time a new member is added to the file or when a current member is cleared, restored, or reorganized.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The allocation method does not change.
</dd>
<dt><b>*NO</b></dt>
<dd>When a new member is added, or when an existing member is cleared or reorganized, the system determines the space that is needed and allocates that amount.
</dd>
<dt><b>*YES</b></dt>
<dd>The amount of storage space specified in the first value of the <b>Member size (SIZE)</b> parameter is allocated each time a new member is added, or each time an existing member is cleared or reorganized. If that amount of storage space is not available, the member is not added, and a message is sent to the user. If this parameter value is used, *NOMAX cannot be in effect for the SIZE parameter.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.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="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.FRCRATIO"></a>
<h3>Records to force a write (FRCRATIO)</h3>
<p>Specifies the number of inserted, changed, or deleted records that are processed before those records are forced to auxiliary (permanent) storage. If the physical file is being recorded in a journal, it is recommended that a larger force write ratio, or *NONE, be specified. More information on journal management is in the Backup and Recovery book, SC41-5304.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The force write ratio of the file 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="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.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="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.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="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.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="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.DLTPCT"></a>
<h3>Max % deleted records allowed (DLTPCT)</h3>
<p>Specifies the maximum percentage of deleted records that any member in the physical file can have. The percentage is based on the number of deleted records compared with the total record count in a member. This change takes effect the next time the file is opened and closed.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The deleted record percentage does not change.
</dd>
<dt><b>*NONE</b></dt>
<dd>No percentage is specified; the number of deleted records in the file members is not checked when a member is closed.
</dd>
<dt><b><i>1-100</i></b></dt>
<dd>Specify the largest percentage of deleted records that any member in the file can have. If a value is larger than this percentage, a message is sent to the system history log (QHST) when the file is closed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.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>
<dl>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGSRCPF.CCSID"></a>
<h3>Coded character set ID (CCSID)</h3>
<p>Specifies the coded character set identifier (CCSID) used to describe character data in the fields of the file.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The CCSID does not change.
</dd>
<dt><b>*HEX</b></dt>
<dd>The CCSID 65535 is used, which indicates that character data in the fields is treated as bit data and is not converted.
</dd>
<dt><b><i>1-65535</i></b></dt>
<dd>Specify the CCSID to be used.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGSRCPF.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Changing the Expiration Date</b>
</p>
<p>
<pre>
CHGSRCPF FILE(QGPL/INV) EXPDATE('10/31/88')
</pre>
</p>
<p>This command changes the expiration date of all members in file INV to October 31, 1988.
</p>
<p><b>Example 2: Changing Text</b>
</p>
<p>
<pre>
CHGSRCF FILE(QGPL/DDMF) TEXT('Inventory File')
SYSTEM(*RMT)
</pre>
</p>
<p>This command changes the text of file INV located in the QGPL library on the remote system. Prior to specifying the above command, this user had created a DDM 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="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGSRCPF.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="#CHGSRCPF.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>