Field name | Type | Description of the Field |
---|---|---|
fcd-file-status
|
As below:
|
User file status. After every operation except a COMMIT or ROLLBACK operation, this field is updated with a standard file status value telling you the status of the operation. See also fcd-access-mode and fcd-status-type. |
fcd-length | pic xx comp-x | |
fcd-version | pic x comp-x | |
fcd-organization | pic x comp-x | File organization:
|
fcd-access-mode | pic x comp-x | User status and access mode indicators. User status is indicated by bit 7. The bit is set if you have defined a file status. Defining a file status can affect how some operations (such as RETRYLOCK) are performed. When calling the File Handler directly, this bit should be set. However, file status is obtained directly from fcd-file-status. Access mode is indicated by bits 6 through 0:
|
fcd-open-mode | pic x comp-x | Open mode:
You must set this field to 128 before opening a file. |
fcd-recording-mode | pic x comp-x | Recording mode
|
fcd-file-format | pic x comp-x | File format
|
fcd-device-flag | pic x comp-x | |
fcd-lock-action | pic x comp-x | Reserved. |
fcd-data-compress | pic x comp-x | Data compression routine indicator:
|
fcd-blocking | pic x comp-x | Node length in bytes:
|
fcd-idxcache-size | pic x comp-x | Number of index nodes held in cached memory. The number specified should be between 4 and 64. When set to 0, a default of 16 is used. |
fcd-percent | pic x comp-x | Percentage indicator |
fcd-block size | pic x comp-x | Block size for data records in bytes:
For indexed and relative files, non-zero settings can degrade performance. |
fcd-flags-1 | pic x comp-x |
|
fcd-flags-2 | pic x comp-x |
|
fcd-mvs-flags | pic x comp-x | Mainframe emulation flags
|
fcd-status-type | pic x comp-x | Status type:
Bits 1 and 2 are set or unset by the File Handler at open time, depending on the settings of the N and T RTS switches. These bits can be set or unset after an OPEN operation to override the N and T RTS switches. Bit 3 means 'Use the other sort of line sequential record delimiter'. |
fcd-other-flags | pic x comp-x |
|
fcd-trans-log | pic x comp-x |
|
fcd-lock-types | pic x comp-x |
|
fcd-fs-flags | pic x comp-x | Fileshare flags:
|
fcd-config-flags | pic x comp-x |
|
fcd-misc-flags | pic x comp-x | Miscellaneous flags:
|
fcd-config-flags2 | pic x comp-x |
|
fcd-lock-mode | pic x comp-x | Lock mode flags for shareable files:
|
fcd-shr2 | pic x comp-x | Miscellaneous flags:
|
fcd-nls-id | pic xx comp-x | NLS identifier |
fcd-fs-file-id | pic xx comp-x | Reserved |
fcd-retry-open-count | pic xx comp-x | RETRYOPEN count field |
fcd-name-length | pic xx comp-x | Length of filename |
fcd-idxname-length | pic xx comp-x | Reserved |
fcd-retry-count | pic xx comp-x | Retry count (used when RETRYLOCK is on) |
fcd-key-id | pic xx comp-x | Key-of-reference (indexed files), used for random READ operations. To specify the prime key, set this field to zero. For example, to specify the first alternate key defined, use a value 1; the second alternate key defined use value 2. |
fcd-line-count | pic xx comp-x |
Line count (sequential files): the number of lines to skip when writing a file. For example: WRITE AFTER ADVANCING line-count LINES |
fcd-use-give | pic xx comp-x | Reserved |
fcd-key-length | pic xx comp-x | Effective key length. When using a START operation on indexed files, you can specify only the leading part of a key instead of the whole key. You should set this field to the number of bytes to be used in the comparison. It must be greater than zero, and no bigger than the key being used. |
fcd-current-rec-len | FCD2: pic x(2) comp-x FCD3: pic x(4) comp-x | Current record length (in bytes) |
fcd-min-rec-length | pic x(4) comp-x | Minimum record length (in bytes) |
fcd-max-rec-length | pic x(4) comp-x | Maximum record length (in bytes) |
fcd-session-id | pic x(4) comp-x | Reserved |
fcd-reladdr-offset | FCD2: pic x(4) comp-x FCD3: pic x(8) comp-x | Relative byte address. (See also fcd-config-flags, bit 4). The value of this field is undefined following the OPEN statement. |
fcd-reladdr-big | pic x(8) comp-x | An eight-byte relative byte address. For FCD2, this is a separate field. For FCD3, it redefines fcd-reladdr-offset. Provided for compatibility between FCD2 and FCD3. |
fcd-max-rel-key | pic x(8) comp-x | Maximum size of relative key |
fcd-relative-key | pic x(8) comp-x | Relative key. This field is also used, for indexed files, to hold the number of records in the file. It is set following an OPEN. |
fcd-handle | pointer | File handle |
fcd-record-address | pointer | Pointer to the record area |
fcd-filename-address | pointer | Pointer to the filename area |
fcd-idxname-address | pointer | Reserved |
fcd-key-def-address | pointer | Pointer to key definition block |
fcd-col-seq-address | pointer | Pointer to a collating sequence (null if none is used) |
fcd-fildef-address | pointer | Reserved |
fcd-dfsort-address | pointer | Reserved |