HP RPG/XL Programmer's Guide (30318-90001)

7-: 15
Table 7-1. The File Table
-----------------------------------------------------------------------------------------------
| | | |
| Word | Byte | Meaning |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| 0 | | Number returned by FOPEN intrinsic |
| | | |
| 1-2 | | File name |
| | | |
| 3-4 | | Device type name |
| | | |
| 5-7 | | Line number for line printer channel control |
| | | |
| 8 | | File type: |
| | | 0 = Input file |
| | | 1 = Output file |
| | | 2 = Update file |
| | | 3 = Display file |
| | | 4 = Combined file |
| | | |
| 9 | | File designation: |
| | | 0 = Secondary input file |
| | | 1 = Blank |
| | | 2 = Primary input file |
| | | 3 = Record address file |
| | | 4 = Chaining file |
| | | 5 = Table or array file |
| | | 6 = Demand file |
| | | |
| 10 | | File organization: |
| | | 1-7 = Sequential or direct access file (allocate 1-7 buffers) |
| | | 8-9 = Sequential or direct access file (allocate 2 buffers) |
| | | 00 = Neither an ADDROUT nor a direct-access file |
| | | 10 = An ADDROUT file |
| | | 11 = A direct-access file |
| | | 13 = A KSAM file |
| | | 14 = An ISAM file |
| | | 15 = A TurboIMAGE file |
| | | |
| 11 | | Processing mode: |
| | | 0 = A sequential file |
| | | 1 = A random-access file |
| | | 2 = An indexed file processed sequentially between limits |
| | | |
| 12 | | Overflow indicator (if this is a printer file): |
| | | 122-128 = OA-OG |
| | | 129 = OV |
| | | |
| | | |
| 13 | | File conditioner: |
| | | 0 = File can be used unconditionally |
| | | 179-186 = U1-U8 |
| | | |
| 14 | | The key length (in bytes) of a RAF or TurboIMAGE file |
| | | |
| 15 | | Line printer carriage control |
| | | |
| 16 | | Record address type: |
| | | 0 = A sequential file or a direct access file not processed by ch|ining
| | | or a RAF |
| | | 1 = A file processed by chaining or a RAF |
| | | 2 = A KSAM, ISAM or TurboIMAGE file processed by alphanumeric key|
| | | 3 = A KSAM, ISAM or TurboIMAGE file processed by packed numeric k|y
| | | |
| 17 | | Number of user labels: |
| | | 0 = Standard label only |
| | | 1-9 = Standard label with 1-9 user labels |
| | | |
| 18 | | File format: |
| | | 0 = Fixed length records |
| | | 1 = Variable length records |
| | | |
-----------------------------------------------------------------------------------------------