MPE/iX Intrinsics Reference Manual (32650-90905)
Chapter 6 231
Command Definitions (FLUSHLOG-GETUSERMODE)
FOPEN
Default: 0
2.3 File type option
Indicates internal record structure used to access records in a file. If the
file is old, this option is ignored. Specifying a designator option (
foption
bits (10:3)) value other than zero overrides this option. This option is
applicable only at file creation.
The following bit settings are valid:
000 Standard (STD) file
001 KSAM/3000 file
010 Relative I/O (RIO) file
011 KSAM XL file
100 Circular (CIR) file
101 NM spoolfile
110 Message (MSG) file
111 KSAM64 file
Default: 000
1.1
Record format extension
Byte stream record format is specified by setting the record format,
foption
(8:2), to variable-length records (01) and the record format
extension,
foption
(1:1), to byte stream record format (1). Zero is the
default value for this option. Using any record format value other than
variable-length records with the record format extension results in an
FSERR 49 (unimplemented function). Byte stream record format may only
be specified for standard disk files. Specifying byte stream record format
for any other type of file result in FSERR 49 error.
Record format extension
Files created using byte stream record format are assigned file attributes
which override values specified by FOPEN parameters. The file attributes
are as follows:
Option Description\Value
foption
(13:1) ASCII/binary\ASCII (1)
foption
(7:1) Carriage control\NOCCTL (0)
recsize
Logical record size\1 Byte (-1)
blockfactor
Blockfactor\1 Record/block
0.1
Reserved for the operating system
aoption
16-bit unsigned integer by value (optional)
Specifies up to eight different file access options by setting corresponding
bit groupings: