433 lines
18 KiB
HTML
433 lines
18 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>Override ICF File (OVRICFF)</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="OVRICFF.Top_Of_Page"></a>
|
|
<h2>Override ICF File (OVRICFF)</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="#OVRICFF.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#OVRICFF.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#OVRICFF.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="OVRICFF"></a>
|
|
<p>The Override with Intersystem Communications Function File (OVRICFF) command overrides the file named in the program and overrides certain parameters of the file being processed. Parameters overridden by this command can be specified in the file description, in the program, or in other file override commands that are run later.
|
|
</p>
|
|
<p>If a file named in the program is being overridden, the name of that file is specified in the FILE parameter and the name of the overriding file (the file being processed) is specified in the TOFILE parameter.
|
|
</p>
|
|
<p>This command can also specify parameters to override values contained in the file description of the overriding file. If the file named in the program is not being replaced but certain parameters of the file are being overridden, the name of the file is specified in the FILE parameter and *FILE is specified in the TOFILE parameter. The parameters being overridden are then specified by the other parameters of the OVRICFF command. Parameters that are not specified do not affect parameters specified in the file description, in the program, or in other override commands run later.
|
|
</p>
|
|
<p>More information on how overrides processing is performed is in the Files and file systems topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter, the Application Display Programming book, SC41-5715, and the Basic Printing information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>Using this command does not cause a file to be overridden immediately. Information provided on this command is stored until the file is used, at which time the file is overridden.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="OVRICFF.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"><a href="#OVRICFF.FILE"><b>FILE</b></a></td>
|
|
<td valign="top">File being overridden</td>
|
|
<td valign="top"><i>Name</i></td>
|
|
<td valign="top">Required, Positional 1</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#OVRICFF.TOFILE"><b>TOFILE</b></a></td>
|
|
<td valign="top">Overriding to ICF file</td>
|
|
<td valign="top">Single values: <b><u>*FILE</u></b><br>Other values: <i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional, Positional 2</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Overriding to ICF 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" rowspan="2"><a href="#OVRICFF.ACQPGMDEV"><b>ACQPGMDEV</b></a></td>
|
|
<td valign="top">Acquire program device</td>
|
|
<td valign="top"><i>Element list</i></td>
|
|
<td valign="top" rowspan="2">Optional, Positional 3</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Element 1: Program device to acquire</td>
|
|
<td valign="top">
|
|
<i>Character value</i>, *NONE</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#OVRICFF.MAXRCDLEN"><b>MAXRCDLEN</b></a></td>
|
|
<td valign="top">Maximum record length</td>
|
|
<td valign="top"><i>Integer</i>, *CALC</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#OVRICFF.WAITFILE"><b>WAITFILE</b></a></td>
|
|
<td valign="top">Maximum file wait time</td>
|
|
<td valign="top"><i>Integer</i>, *IMMED, *CLS</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#OVRICFF.WAITRCD"><b>WAITRCD</b></a></td>
|
|
<td valign="top">Maximum record wait time</td>
|
|
<td valign="top">1-32767, *NOMAX, *IMMED</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#OVRICFF.LVLCHK"><b>LVLCHK</b></a></td>
|
|
<td valign="top">Record format level check</td>
|
|
<td valign="top">*NO</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#OVRICFF.SECURE"><b>SECURE</b></a></td>
|
|
<td valign="top">Secure from other overrides</td>
|
|
<td valign="top"><b><u>*NO</u></b>, *YES</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#OVRICFF.OVRSCOPE"><b>OVRSCOPE</b></a></td>
|
|
<td valign="top">Override scope</td>
|
|
<td valign="top"><b><u>*ACTGRPDFN</u></b>, *CALLLVL, *JOB</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#OVRICFF.DTAQ"><b>DTAQ</b></a></td>
|
|
<td valign="top">Data queue</td>
|
|
<td valign="top">Single values: *NONE<br>Other values: <i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Data queue</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="#OVRICFF.SHARE"><b>SHARE</b></a></td>
|
|
<td valign="top">Share open data path</td>
|
|
<td valign="top">*NO, *YES</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#OVRICFF.OPNSCOPE"><b>OPNSCOPE</b></a></td>
|
|
<td valign="top">Open scope</td>
|
|
<td valign="top">*ACTGRPDFN, *JOB</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="OVRICFF.FILE"></a>
|
|
<h3>File being overridden (FILE)</h3>
|
|
<p>Specifies the file to which this override command is applied. The specified file must be an intersystem communications function (ICF) file when *FILE is specified in the <b>Overriding to ICF file (TOFILE)</b> parameter. Otherwise, any device file or database file name can be specified.
|
|
</p>
|
|
<p>This is a required parameter.
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the ICF file.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="OVRICFF.TOFILE"></a>
|
|
<h3>Overriding to ICF file (TOFILE)</h3>
|
|
<p>Specifies the qualified name of the ICF file (up to 10 characters) that is used instead of the file specified in the <b>File being overridden (FILE)</b> parameter or, if *FILE is specified, indicates that certain attributes are overridden by parameters in this command. The parameters on this command override the other values in the ICF file or in the program.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*FILE</u></b></dt>
|
|
<dd>Some parameters of the ICF file named in the <b>File being overridden (FILE)</b> parameter are overridden by values specified in this command.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 1: Overriding to ICF file</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the ICF file that is used instead of the overridden 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 ICF file description. 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 ICF file description is located.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="OVRICFF.ACQPGMDEV"></a>
|
|
<h3>Acquire program device (ACQPGMDEV)</h3>
|
|
<p>Specifies which program device is acquired by the file when the file is opened. This parameter overrides the value in the ICF file, in the program, or in the other OVRICFF commands run later.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>The file is opened without any devices acquired. All devices used with this file must be explicitly acquired before input/output can be directed to them.
|
|
</dd>
|
|
<dt><b><i>character-value</i></b></dt>
|
|
<dd>Specify the name of the program device that is acquired when the file is opened. The name should be specified on the Add ICF Program Device Entry (ADDICFDEVE) command or the override ICF program device entry (OVRICFDEVE) command as a program device name before the file is opened.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="OVRICFF.MAXRCDLEN"></a>
|
|
<h3>Maximum record length (MAXRCDLEN)</h3>
|
|
<p>Specifies the maximum record length used when the file is opened. This parameter overrides the value in the ICF file, in the program, or in the other OVRICFF commands run later.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*CALC</b></dt>
|
|
<dd>The value calculated in the file is used when the file is opened.
|
|
</dd>
|
|
<dt><b><i>integer</i></b></dt>
|
|
<dd>Specify the record length (in characters) that is used when the file is opened. Valid values range from 1 through 32767. If the record length is less than the calculated value in the file, the calculated value is used.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="OVRICFF.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>*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 allocation of the file resources.
|
|
</dd>
|
|
<dt><b><i>integer</i></b></dt>
|
|
<dd>Specify the number of seconds that the program waits for the allocation of the file resources. Valid values range from 1 through 32767.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="OVRICFF.WAITRCD"></a>
|
|
<h3>Maximum record wait time (WAITRCD)</h3>
|
|
<p>Specifies the number of seconds the program waits for the completion of a read-from-invited-devices operation to a multiple device file in a high-level language program. Refer to the high-level language reference manual to determine when a file is treated as a multiple device file. The program performing the read operation waits for the input form all invited devices currently accessing the file. If a record is not returned from any of the invited program devices in the specified amount of time, a notify message is sent to the program. This parameter has no effect on an input operation directed to a single device.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*NOMAX</b></dt>
|
|
<dd>There is no limit on the time the system waits for the completion of the operation.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*IMMED</b></dt>
|
|
<dd>The program does not wait. If a record is not available when the read-from-invited-devices operation is done, a notify message is sent to the program.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b><i>1-32767</i></b></dt>
|
|
<dd>Specify the number of seconds that the program waits for the completion of the read-from-invited-program-devices operation.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="OVRICFF.LVLCHK"></a>
|
|
<h3>Record format level check (LVLCHK)</h3>
|
|
<p>Specifies whether the level identifiers of the record formats in this device file are checked when the file is opened by a program. While the file is being opened, the system verifies the level identifiers and compares the record format identifiers of each record format used by the program with the same identifiers in the device file. Because the same record format name can exist in more than one file, each record format is given a unique internal system identifier when the format is created.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>This command cannot override level checking from *NO to *YES.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*NO</b></dt>
|
|
<dd>The level identifiers of the record formats are not checked when the file is opened.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="OVRICFF.SECURE"></a>
|
|
<h3>Secure from other overrides (SECURE)</h3>
|
|
<p>Specifies whether this file is protected from the effects of previous file override commands.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NO</u></b></dt>
|
|
<dd>This file is not protected from other file overrides. Its values can be overridden by the effects of any file override commands started earlier.
|
|
</dd>
|
|
<dt><b>*YES</b></dt>
|
|
<dd>This file is protected from the effects of any file override commands started earlier.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="OVRICFF.OVRSCOPE"></a>
|
|
<h3>Override scope (OVRSCOPE)</h3>
|
|
<p>Specifies the extent of influence (scope) of the override.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*ACTGRPDFN</u></b></dt>
|
|
<dd>The scope of the override is determined by the activation group of the program that calls this command. When the activation group is the default activation group, the scope equals the call level of the calling program. When the activation group is not the default activation group, the scope equals the activation group of the calling program.
|
|
</dd>
|
|
<dt><b>*CALLLVL</b></dt>
|
|
<dd>The scope of the override is determined by the current call level. All open operations done at a call level that is the same as or higher than the current call level are influenced by this override.
|
|
</dd>
|
|
<dt><b>*JOB</b></dt>
|
|
<dd>The scope of the override is the job in which the override occurs.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="OVRICFF.DTAQ"></a>
|
|
<h3>Data queue (DTAQ)</h3>
|
|
<p>Specifies the data queue on which entries are placed. The specified data queue must have a minimum length of 80 characters. The data queue need not exist when the display file is created since the name specified for this parameter is not evaluated until the file is used.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>Keyed data queues are not supported for this parameter. If a keyed data queue is specified, a run-time error will occur; but because it is not required that a data queue exist at the time the command is issued, the error will not be flagged.
|
|
</p>
|
|
<p>More information on the data queue function is in the CL concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>No data queue is specified.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 1: Data queue</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the data queue on which entries are placed.
|
|
</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 data queue. If no library is specified as the current library, QGPL is used.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the library where the data queue is located.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="OVRICFF.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>*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>
|
|
<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="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="OVRICFF.OPNSCOPE"></a>
|
|
<h3>Open scope (OPNSCOPE)</h3>
|
|
<p>Specifies the extent of influence (scope) of the open operation.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*ACTGRPDFN</b></dt>
|
|
<dd>The scope of the open operation is determined by the activation group of the program that called the OVRICFF command processing program. If the activation group is the default activation group, the scope is the call level of the caller. If the activation group is a non-default activation group, the scope is the activation group of the caller.
|
|
</dd>
|
|
<dt><b>*JOB</b></dt>
|
|
<dd>The scope of the open operation is the job in which the open operation occurs.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="OVRICFF.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p>
|
|
<pre>
|
|
OVRICFF FILE(ICFHIST) TOFILE(PRSNNL/ICFCURT)
|
|
</pre>
|
|
</p>
|
|
<p>This command overrides the file named ICFHIST to the ICF file named ICFCURT in library PRSNNL.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="OVRICFF.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPF180C</b></dt>
|
|
<dd>Function &1 not allowed.
|
|
</dd>
|
|
<dt><b>CPF1892</b></dt>
|
|
<dd>Function &1 not allowed.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#OVRICFF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|