Accessing Files Programmer's Guide (32650-90885)

28 Chapter2
Creating A File
The HPFOPEN Intrinsic
concurrent access to this file by any process, in any access
mode, subject to other basic security provisions in effect.
For message files, specifying this value means that there
can be multiple writers and one reader.
Default: 0
(ASC) This option is ignored for devices.
FIFO files should be opened for Share Access (3). Other exclusive accesses
to file will cause unexpected results to occur.
14/I32 Multiaccess:
Passes a value indicating how the file's record pointer is to be shared. This
option is useful for sharing standard input devices where there is some
natural sequence of access to the file. This option permits processes located
in different jobs or sessions to open the same file and share that file's
record pointer.
The following values are valid:
0 No multiple process access allowed. A unique record
pointer is created for this access to the file. For message
files, the file system sets the multiaccess option to 2 when
a zero is specified for this option.
1 Intrajob multiprocess access allowed. A record pointer is
shared with all other opened files of the same name in the
same job/session who opened the file with
itemnum
=14 is
set to either 1 or 2.
2 Interjob multiprocess access allowed. A record pointer is
shared with all other opened files of the same name on the
system. This is the same as specifying the GMULTI option
in a FILE command.
Default: 0
Native byte stream access (see item 77) is opened regardless of the value of
this
itemnum
. This
itemnum
is also ignored for directories since it is not
applicable.
(ASC) Not used for asynchronous devices.
15/I32 Multirecord:
Passes a value indicating that individual read or write requests are not
confined to record boundaries.
The following values are valid:
0 Nonmultirecord mode (NOMULTI)
1 Multirecord mode (MULTI)
Default: 0
If the number of half words or bytes to be transferred (specified in the