Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Override with Display File (OVRDSPF) command is used to: (1) override (replace) the file named in the program, (2) override certain parameters of a file that are used by the program, or (3) override the file named in the program and override certain parameters of the file processed. Parameters overridden by this command are specified in the file description, in the program, or in other called file override commands.
If a file named in the program is 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. The OVRDSPF command also specifies parameters to override values contained in the file description of the overriding file. If the file named in the program is not replaced but certain parameters of the file are overridden, the name of the file is specified in the FILE parameter and *FILE is specified in the TOFILE parameter. The parameters overridden are then specified by the other parameters of the OVRDSPF command. Parameters that are not specified do not affect parameters specified in the file description, in the program, or in other called file override commands.
More information on override files is in the Application Display Programming book, SC41-5715.
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 display file | Single values: *FILE Other values: Qualified object name |
Optional, Positional 2 |
Qualifier 1: Overriding to display file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
DEV | Device | Values (up to 50 repetitions): Name, *REQUESTER | Optional, Positional 3 |
CHRID | Character identifier | Single values: *DEVD, *SYSVAL, *JOBCCSID, *CHRIDCTL Other values: Element list |
Optional |
Element 1: Graphic character set | Integer | ||
Element 2: Code page | Integer | ||
DECFMT | Decimal format | *FILE, *JOB | Optional |
SFLENDTXT | SFLEND text | *MSG, *FILE | Optional |
IGCDTA | User specified DBCS data | *NO, *YES | Optional |
IGCEXNCHR | DBCS extension characters | *YES, *NO | 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 | *YES, *NO | Optional |
OPNSCOPE | Open scope | *ACTGRPDFN, *JOB | Optional |
Top |
Specifies the file in the using program to which this override command is applied. The specified file must be a display device file when *FILE is specified in the Overriding to display file (TOFILE) parameter. Otherwise, any device file or database file name can be specified.
This is a required parameter.
Top |
Specifies the display file that is used instead of the file specified in the File being overridden (FILE) parameter, or, if *FILE is specified, specifies that certain attributes are overridden by parameters specified in this command. The parameters specified on this command override the same parameters specified in the display device file, in the program, or in other called (OVRDSPF) commands.
Single values
Qualifier 1: Overriding to display file
Qualifier 2: Library
Top |
Specifies the names of one or more display devices that are used with the display device file. This parameter overrides the device names specified in the device file, in the program, or in other called Override with Display File (OVRDSPF) commands. The device name specified in the IBM-supplied display device file is *REQUESTER.
This parameter overrides the device names specified in the device file, in the program, or in other called OVRDSPF commands.
A maximum of 50 device names (including *REQUESTER, if it is specified) can be specified in this command, but the total number cannot exceed the number specified on the Maximum devices (MAXDEV) parameter when the file is opened.
Top |
Specifies the character identifier (graphic character set and code page) for the file. When a display file that was created with the CHRID DDS keyword is used with a work station device, the system translates data sent to and received from the device (as necessary) to ensure that the correct characters are displayed, and the correct hexadecimal byte values are returned to the application program. More information about display file CHRID processing and the translation tables that are used to convert data sent to and received from the display are in the Application Display Programming book, SC41-5715.
Single values
Note: This value is not allowed if the file was created on a system at an earlier release level than V2R3M0.
Element 1: Graphic character set
Element 2: Code page
Top |
Specifies which decimal format value is used when editing numeric fields with the EDTCDE DDS keyword. The decimal format value determines the use of commas and periods for the decimal position and three digit positional separators on edited fields.
Top |
Specifies where the 'More...' and 'Bottom' text is retrieved from when displaying a subfile. The 'More...' and 'Bottom' text is displayed in a subfile when the SFLEND(*MORE) DDS keyword is specified on the subfile control record.
Top |
Specifies, for program-described files, whether the file processes double-byte character set (DBCS) data. Specifies, for externally described files, the DBCS attributes of the file.
For program-described files:
For DDS files:
Top |
Specifies whether the system processes double-byte character set (DBCS) extension characters.
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.
More information on this parameter is in the CL concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter, Appendix A.
Note: An immediate allocation of the device by the device resource is required when an acquire operation is performed to the file.
This parameter overrides the wait time specified in the device file, in the program, or in other called OVRDSPF commands.
Top |
Specifies the number of seconds the program waits for the completion of a read-from-invited-program-devices operation to a multiple device file in an HLL program. More information on how to determine when a file is considered a multiple device file is in the appropriate HLL reference manual. The program performing the read operation waits for input from all invited devices currently acquired by the file. If a record is not returned from an invited device within the specified amount of time, a notify message is sent to the program. This parameter has no effect on an input operation directed to one device.
This parameter is also used to specify the number of seconds that a CL program waits to complete a WAIT command. If a record is not returned from any of the devices that should return a record, the CL program is sent an escape message.
This parameter overrides the wait record value specified in the device file, in the program, or in other called OVRDSPF commands.
Top |
Specifies whether the level identifiers of the record formats in this device file are checked when the file is opened by a program. For this check, which is done when the file is opened, the system compares the record format identifiers of each record format used by the program with the corresponding 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.
Level checking cannot be done unless the program contains the record format identifiers. This command cannot override level checking from *NO to *YES.
Top |
Specifies whether this file is safe from the effects of previous call level file override commands.
Top |
Specifies the extent of influence (scope) of the override.
Top |
Specifies the data queue that receives an entry from the system when a data-available event is signaled from an invited display device. The data queue need not exist when the display file is created since the name specified on this parameter is not evaluated until the file is used. More information on the data queue function is in the CL information 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.
More information on shared database files is in the Database information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
This parameter overrides the value specified in the device file, in the program, or in other called OVRDSPF commands.
Top |
Specifies the extent of influence (scope) of the open operation.
Top |
OVRDSPF FILE(DISPLAY75) WAITFILE(30)
This command overrides the file wait time value specified in the DISPLAY75 device file description, in the program, or in other called OVRDSPF commands. The program in which this command occurs waits up to 30 seconds (if necessary) to allocate the required file resources to the file named DISPLAY75.
Top |
Top |