MPE/iX Intrinsics Reference Manual (32650-90875)

244 Chapter6
Command Definitions (FLUSHLOG-GETUSERMODE)
FOPEN
Applicable only at file creation.
Default: 1023 records
(ASC) Not valid for asynchronous device files.
numextent
16-bit signed integer by value (optional)
Passes a value in the range 1..32 that determines the number of extents
for the file. If a value of 1 and an
initialloc
value of 1 is specified, the file
is created as one contiguous extent of disk space. If a value >1 is specified,
a variable number of extents (with varying extent sizes) is allocated on a
need basis. Applicable only at file creation.
Default: >8 extents
(ASC) Not valid for asynchronous device files.
initialloc
16-bit signed integer by value (optional)
Passes an integer value in the range 1..32 that determines the number of
extents to be allocated to the file initially. Applicable only at file creation.
Default: 1
(ASC) Not valid for asynchronous device files.
filecode
16-bit signed integer by value (optional)
Passes a value that can be used as a file code to identify the type of file.
This code is recorded in the file label and is accessible through the
FFILEINFO intrinsic. Applicable only at file creation (except when opening
an old file that has a negative file code).
If the program is running in user mode, specify a file code in the range
0..32,767 to indicate the file type being created; programs running in user
mode can access files with non-negative file codes. If the program is
running in privileged mode, specify a file code in the range -32,768..32,767;
programs running in privileged mode can access files with a file code in the
range -32,768..32,767. If an old file with a negative file code is opened, the
file code specified must match the file code in the file label.
Negative file codes are only allowed for file in MPE groups.
Default: 0
(ASC) Not valid for asynchronous device files.
Table 6-1. FOPEN/HPFOPEN Parameter Equivalents
FOPEN Parameter HPFOPEN Itemnum,Item
filenum
(functional return)
filenum
(parameter)
formaldesig 2,formaldesig