Retrieve File Override Information (QDMRTVFO) API
Required Parameter Group:
1 | Returned override information | Output | Char(*) |
2 | Length of override information | Input | Binary(4) |
3 | Format name | Input | Char(8) |
4 | File name | Input | Char(10) |
5 | Error code | I/O | Char(*) |
Default Public Authority: *EXCLUDE
Threadsafe: Yes
The Retrieve File Override Information (QDMRTVFO) API returns the name of the file, library, member and final type of override that result from processing TOFILE or MBR overrides for the user specified file name. Overrides will be processed in the following sequence:
- Any call level overrides up to and including the level of the activation group's oldest procedure
- Any activation group level overrides
- Any remaining call level overrides
- Overrides at the job level
Authorities and Locks
None.
Required Parameter Group
- Returned override information
- OUTPUT; CHAR(*)
The structure in which to return information for file overrides processed. It can be smaller than the format requested as long as the next parameter, length of override information, specifies the length correctly. When this variable is smaller than the format, the API returns only the data the variable can hold.
- Length of override information
- INPUT; BINARY(4)
Variable that contains the length of the user provided output area. The minimum length is 8 bytes. If you specify a length that is longer than the returned override information, the results will be unpredictable.
- Format name
- INPUT; CHAR(8)
The content and format of the information returned for each file. The possible format names are:
OVRL0100 File override information.
For more information, see OVRL0100 Format
- File name
- INPUT; CHAR(10)
The name of the file to return override information.
- Error code
- I/O; CHAR(*)
The structure in which to return error information. For the format of the structure, see Error code parameter.
OVRL0100 Format
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | BINARY(4) | Bytes returned |
4 | 4 | BINARY(4) | Bytes available |
8 | 8 | CHAR(10) | File name used |
18 | 12 | CHAR(10) | Library name used |
28 | 1C | CHAR(10) | Member name used |
38 | 26 | CHAR(10) | Final override type |
Field Descriptions
Bytes available. The number of bytes of data available to be returned. All available data is returned if enough space is provided.
Bytes returned. The number of bytes of data returned.
File name used. The file name that results from processing file overrides for the user provided file name. This field will be set to blanks in the following cases:
- There are no overrides for the file name specified.
- Overrides exist but the TOFILE parameter was not specified.
Final override type. This field will contain the final
override type applied to the file.
This field will be set to the final type of override command specified as
follows:
BSC | Binary synchronous communications (BSC) |
CMN | Communications |
DB | Database |
DDM | Distributed data management |
DKT | Diskette |
DSP | Display |
ICF | Intersystem communications function |
MXD | Mixed |
PRT | Printer |
SAV | Save |
TAP | Tape |
This field will be set to blanks in the following cases:
- There are no overrides for the file name specified.
- There are overrides but neither TOFILE nor MBR parameters were specified.
Library name used. The library name which results from processing file overrides for the user provided file name including the values *LIBL and *CURLIB.
This field will be set to blanks in the following cases:
- There are no overrides for the file name specified.
- Overrides exist but TOFILE was not specified.
This will be set to *LIBL if the file name is being overridden and library name is not.
Member name used. The member name which results from processing file overrides for the user provided file name including the values *FIRST, *LAST and *ALL. This field will be set to *FIRST when the final override type is Data Base and the member is not being overridden.
This field will be set to blanks in the following cases:
- There are no overrides for the file name specified.
- Override type is not DB.
- Override type is DB, but neither TOFILE nor MBR were specified.
Error Messages
Message ID | Error Message Text |
---|---|
CPF24B4 E | Severe error while addressing parameter list. |
CPF3CF1 E | Error code parameter not valid. |
CPF3C24 E | Length of the receiver variable is not valid. |
CPF3C90 E | Literal value cannot be changed. |
API introduced: V3R1
[ Back to top | Database and File APIs | APIs by category ]