Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Override with Save File (OVRSAVF) command is used (1) to override or replace a file named in a program, (2) to override certain attributes of a file that are used by a program, or (3) to override the file named in a program and certain attributes of the overriding file.
This command does not apply to save and restore commands.
More information on overriding files is in the Files and file systems topic 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 | Save file | Single values: *FILE Other values: Qualified object name |
Optional, Positional 2 |
Qualifier 1: Save file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
EXTEND | Extend file | *NO, *YES | Optional |
POSITION | Starting position in file | Single values: *START Other values: Element list |
Optional |
Element 1: Retrieve order | *RRN | ||
Element 2: *RRN--Record number | Unsigned integer | ||
WAITFILE | Maximum file wait time | Integer, *IMMED, *CLS | Optional |
SECURE | Secure from other overrides | *NO, *YES | Optional |
OVRSCOPE | Override scope | *ACTGRPDFN, *CALLLVL, *JOB | Optional |
SHARE | Share open data path | *NO, *YES | Optional |
OPNSCOPE | Open scope | *ACTGRPDFN, *JOB | Optional |
Top |
Specifies the save file in the using program to which this override command is applied. The specified file must be a save file when *FILE is specified in the Save file (TOFILE) parameter.
Note: The information in a save file has meaning only to Operating System/400 save and restore; redirecting another type of file to a save file or vice versa is not recommended.
This is a required parameter.
Top |
Specifies the save file that is used instead of the file specified on the File being overridden (FILE) parameter or, if *FILE is specified, specifies that certain attributes are overridden by parameters specified on this command. The parameters specified on this command override the other values specified in the save file or in the program.
Single values
Qualifier 1: Save file
Qualifier 2: Library
Top |
Specifies, for output operations only, whether new records are added to the end of the data currently in the save file. This option is used to start processing after an application or a system failure. When this operation is completed, the file must contain the image of a single save operation made by a save command, or it may not be possible to restore objects from the save file. This parameter overrides the extend value specified in the program. The sequencing information in the file's records guarantees that after a system failure, a record cannot be skipped or sent twice.
Top |
Specifies the starting position for getting records from the save file. The first record to get is either at the beginning of the file (*START) or at a particular relative record number position in the file (*RRN). This parameter overrides the value specified in the program.
Single values
Element 1: Retrieve order
Element 2: *RRN--Record number
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 whether this file is protected from the effects of file override commands that were previously called.
Top |
Specifies the extent of influence (scope) of the override.
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 |
OVRSAVF FILE(ONLINE) POSITION(*RRN 100) SECURE(*YES)
This command overrides the file named ONLINE so that the first record gotten after the file is opened for input is relative record number 100. The file is also safe from overrides (in previous program calls).
Top |
Top |