Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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.
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.
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.
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.
Note: 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.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FILE | File being overridden | Name | Required, Positional 1 |
TOFILE | Overriding to ICF file | Single values: *FILE Other values: Qualified object name |
Optional, Positional 2 |
Qualifier 1: Overriding to ICF file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
ACQPGMDEV | Acquire program device | Element list | Optional, Positional 3 |
Element 1: Program device to acquire | Character value, *NONE | ||
MAXRCDLEN | Maximum record length | Integer, *CALC | Optional |
WAITFILE | Maximum file wait time | Integer, *IMMED, *CLS | Optional |
WAITRCD | Maximum record wait time | 1-32767, *NOMAX, *IMMED | Optional |
LVLCHK | Record format level check | *NO | Optional |
SECURE | Secure from other overrides | *NO, *YES | Optional |
OVRSCOPE | Override scope | *ACTGRPDFN, *CALLLVL, *JOB | Optional |
DTAQ | Data queue | Single values: *NONE Other values: Qualified object name |
Optional |
Qualifier 1: Data queue | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
SHARE | Share open data path | *NO, *YES | Optional |
OPNSCOPE | Open scope | *ACTGRPDFN, *JOB | Optional |
Top |
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 Overriding to ICF file (TOFILE) parameter. Otherwise, any device file or database file name can be specified.
This is a required parameter.
Top |
Specifies the qualified name of the ICF file (up to 10 characters) that is used instead of the file specified in the File being overridden (FILE) 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.
Single values
Qualifier 1: Overriding to ICF file
Qualifier 2: Library
Top |
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.
Top |
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.
Top |
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.
Top |
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.
Top |
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.
Note: This command cannot override level checking from *NO to *YES.
Top |
Specifies whether this file is protected from the effects of previous file override commands.
Top |
Specifies the extent of influence (scope) of the override.
Top |
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.
Note: 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.
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.
Single values
Qualifier 1: Data queue
Qualifier 2: Library
Top |
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.
Top |
Specifies the extent of influence (scope) of the open operation.
Top |
OVRICFF FILE(ICFHIST) TOFILE(PRSNNL/ICFCURT)
This command overrides the file named ICFHIST to the ICF file named ICFCURT in library PRSNNL.
Top |
Top |