Open feedback area for printer

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:
DS
Printer file not being spooled. Display, tape, intersystem communications function (ICF), save, or diskette file not being spooled.
SP
Printer or diskette file being spooled or inline data file.
ST
Printer file data is being written to an IFS streamed file.
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:
  • If the ODP type is SP, the member name in the file is named at offset 22.
58 Binary 4 Reserved.
62 Binary 4 Reserved.
66 Binary 2 File type:
1
Display
2
Printer
4
Diskette
5
Tape
9
Save
10
DDM
11
ICF
20
Inline data
21
Database
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.
Bit 1:
Reserved.
Bit 2:
File sharable
0
File was not opened as sharable.
1
File was opened as sharable (SHARE(*YES)).
Bits 3-5:
Not applicable to printer.
Bit 6:
Field-level descriptions
0
File does not contain field-level descriptions.
1
File contains field-level descriptions.
Bit 7:
DBCS-capable file
0
File is not DBCS-capable.
1
File is DBCS-capable.
Bit 8:
Not applicable to printer.
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.
     
Bits 1-4:
Not applicable to printer.
Bit 5:
Separate indicator area
0
Indicators are in the I/O buffer of the program.
1
Indicators are not in the I/O buffer of the program. The DDS keyword, INDARA, was used when the file was created.
Bit 6:
User buffers
0
System creates I/O buffers for the program.
1
User program supplies I/O buffers.
Bits 7-8:
Reserved.
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 Binary 2 CCSID — Coded Character Set Identifier.
139 Character 1 Reserved.
140 Binary 4

Offset to the extensions list. Number of bytes from the start of the open feedback area to the extensions offset table.

The open feedback extensions table occurs after the device name list in the ODP.

144 Binary 2 Number of devices defined for this ODP. For printers this always has a value of 1.
146 Character   Device name definition list. See Device definition list for a description of this array.