The open data path (ODP) contains information about the merged file attributes and information returned by input or output operations. The ODP only exists while the file is open.
The open feedback area is the part of the open data path (ODP) that contains general information about the file after it has been opened. It also contains file-specific information, depending on the file type, plus information about each device defined for the file. This information is set during open processing and can be updated as other operations are performed.
Offset | Data type | Length in bytes | Contents |
---|---|---|---|
0 | Character | 2 | Open data path (ODP) type:
|
2 | Character | 10 | Name of the file being opened. If the ODP type is DS, this is the name of the device file or save file. If the ODP type is SP, this is the name of the device file or the inline data file. |
12 | Character | 10 | Name of the library containing the file. |
22 | Character | 10 | Name of the spooled file. The name of a database file containing the spooled input or output records. |
32 | Character | 10 | Name of the library in which the spooled file is located. |
42 | Binary | 2 | Spooled file number. |
44 | Binary | 2 | Maximum record length. |
46 | Character | 2 | Reserved. |
48 | Character | 10 | Member name:
|
58 | Binary | 4 | Reserved. |
62 | Binary | 4 | Reserved. |
66 | Binary | 2 | File type:
|
68 | Character | 3 | Reserved. |
71 | Binary | 2 | Number of lines on a printed page. |
73 | Binary | 2 | Number of positions on a printed line. |
75 | Binary | 4 | Not applicable to printer. |
79 | Binary | 4 | Spooled file number. |
83 | Character | 10 | Reserved. |
93 | Character | 10 | Reserved. |
103 | Binary | 2 | Not applicable to printer. |
105 | Binary | 2 | Maximum number of records that can be read or written in a block when using blocked record I/O. |
107 | Binary | 2 | Overflow line number. |
109 | Binary | 2 | Blocked record I/O record increment. Number of bytes that must be added to the start of each record in a block to address the next record in the block. |
111 | Binary | 4 | Reserved. |
115 | Character | 1 | Miscellaneous flags.
|
116 | Character | 10 | Not applicable to printer. |
126 | Binary | 2 | File open count. If the file has not been opened as sharable, this field contains a 1. If the file has been opened as sharable, this field contains the number of programs currently attached to this file. |
128 | Binary | 2 | Reserved. |
130 | Binary | 2 | Not applicable to printer. |
132 | Character | 1 | Miscellaneous flags. |
|
|||
133 | Character | 2 | Open identifier. The value is unique for a full (not shared) open operation of a file. It allows you to match this file to an entry on the associated data queue. |
135 | Binary | 2 | The field value is the maximum record format length, including both data and file-specific information, such as first-character forms control, option indicators, response indicators, source sequence numbers, and program-to-system data. If the value is zero, then use the field at offset 44. |
137 | Character | 9 | Reserved. |
146 | Binary | 2 | Number of devices defined for this ODP. For printers this always has a value of 1. |
148 | Character | Device name definition list. See Device definition list for a description of this array. |