File Management - IBM

File Management - IBM File Management - IBM

as400bks.rochester.ibm.com
from as400bks.rochester.ibm.com More from this publisher
30.06.2013 Views

Table 24. I/O Feedback Area for ICF and Display Files (continued) Offset Data Type Length Contents File Type 36 Character 2 Minor return code. For the values for a display file, see the Application Display Programming book. For the values for an ICF file, see the ICF Programming book and the appropriate communications-type programmer’s guide. Display, ICF 38 Character 8 Systems Network Architecture (SNA) sense return code. For some return codes, this field may contain more detailed information about the reason for the error. For a description of the SNA sense codes, see the appropriate SNA book. ICF 46 Character 1 Safe indicator: ICF 0 An end-of-text (ETX) control character has not been received. 1 An ETX control character has been received. 47 Character 1 Reserved. 48 Character 1 Request Write (RQSWRT) command from remote system/application. 0 RQSWRT not received 1 RQSWRT received 49 Character 10 Record format name received from the remote system. ICF 59 Character 4 Reserved. 63 Character 8 Mode name. ICF 71 Character 9 Reserved. I/O feedback area for printer files Table 25. I/O Feedback Area for Printer Files Offset Data Type Length Contents 0 Binary 2 Current line number in a page. 2 Binary 4 Current page count. 6 Character 1 Bit 1: Spooled file has been deleted: ICF 1 The spooled file has been deleted. 0 The spooled file has not been deleted. Bits2-8:Reserved. 7 Character 27 Reserved. 34 Character 2 Major return code. 00 Operation completed successfully. 80 Permanent system or file error. 81 Permanent device error. 82 Open operation failed. 83 Recoverable device error occurred. 36 Character 2 Minor return code. For the values for a printer file, refer to the Printer Device Programming. 188 File Management V4R5

I/O feedback area for database files Table 26. I/O Feedback Area for Database Files Offset Data Type Length Contents 0 Binary 4 Size of the database feedback area, including the key and the null key field byte map. 4 Character 4 Bits 1-32: Each bit represents a join logical file in JFILE keyword. 0 JDFTVAL not supplied for file 1 JDFTVAL supplied for file 8 Binary 2 Offset from the beginning of the I/O feedback area for database files to the null key field byte map which follows the key value (which begins at offset 34 in this area). 10 Binary 2 Number of locked records. 12 Binary 2 Maximum number of fields. 14 Binary 4 Offset to the field-mapping error-bit map. 18 Character 1 Current file position indication. Bit 1: Current file position is valid for get-next-key equal operation. Bits 2-8: Reserved. 0 File position is not valid. 1 File position is valid. 19 Character 1 Current record deleted indication: Bits 1-2: Reserved. Bit 3: Next message indicator. 0 Next message not end of file. 1 Next message may be end of file. Bit 4: Deleted record indicator. 0 Current file position is at an active record. 1 Current file position is at a deleted record. Bit 5: Write operation key feedback indicator. 0 Key feedback is not provided by last write operation. 1 Key feedback is provided by last write operation. Appendix A. Feedback area layouts 189

I/O feedback area for database files<br />

Table 26. I/O Feedback Area for Database <strong>File</strong>s<br />

Offset Data Type Length Contents<br />

0 Binary 4 Size of the database feedback area, including the<br />

key and the null key field byte map.<br />

4 Character 4<br />

Bits 1-32:<br />

Each bit represents a join logical file in<br />

JFILE keyword.<br />

0 JDFTVAL not supplied for<br />

file<br />

1 JDFTVAL supplied for file<br />

8 Binary 2 Offset from the beginning of the I/O feedback<br />

area for database files to the null key field byte<br />

map which follows the key value (which begins<br />

at offset 34 in this area).<br />

10 Binary 2 Number of locked records.<br />

12 Binary 2 Maximum number of fields.<br />

14 Binary 4 Offset to the field-mapping error-bit map.<br />

18 Character 1 Current file position indication.<br />

Bit 1: Current file position is valid for<br />

get-next-key equal operation.<br />

Bits 2-8: Reserved.<br />

0 <strong>File</strong> position is not valid.<br />

1 <strong>File</strong> position is valid.<br />

19 Character 1 Current record deleted indication:<br />

Bits 1-2: Reserved.<br />

Bit 3: Next message indicator.<br />

0 Next message not end of file.<br />

1 Next message may be end of<br />

file.<br />

Bit 4: Deleted record indicator.<br />

0 Current file position is at an<br />

active record.<br />

1 Current file position is at a<br />

deleted record.<br />

Bit 5: Write operation key feedback indicator.<br />

0 Key feedback is not provided<br />

by last write operation.<br />

1 Key feedback is provided by<br />

last write operation.<br />

Appendix A. Feedback area layouts 189

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!