Accessing Files Programmer's Guide (32650-90885)

32 Chapter2
Creating A File
The HPFOPEN Intrinsic
sharing mechanisms. All file system intrinsics applicable to the file can be
used. FREAD and FWRITE calls can be mixed with this option.
Standard (STD) disk files of fixed or undefined record length can be
accessed with this option. Standard disk files of variable record length can
be accessed only if
itemnum
=11 (read-only access). Standard disk files of
variable record length and KSAM files can be accessed only if
itemnum
=11
(read-only access) and
itemnum
=17 (set to 1).
Directories may not be opened using long-mapped access.
Default: Not returned
(ASC) Not used for asynchronous devices.
22/CA Volume class:
Passes a character array representing a volume class name where the file
space is to be restricted. This option is applicable only at file creation.
A volume class is a subset of volumes within a volume set. The volume
class name must be a valid volume class name residing on the volume set
bound to the volume (the volume set is an attribute of the group in which
the file resides).
Only one of the following options can be in effect when a file is opened with
this option:
itemnum
=20
itemnum
=22
itemnum
=23
itemnum
=42
Default: A disk file located on the volume class DISC associated with the
group in which file resides.
A character placed in the first element designates the delimiter used by
HPFOPEN to search for the end of the character array. The delimiter can
appear again only following the last valid character of the character array,
for example:
%volclass%
(% is the delimiter,
volclass
is the designator)
fabcxyzf
(
f
is the delimiter,
abcxyz
is the designator)
This
itemnum
may not be specified when creating hierarchical directories.
(ASC) Not used for asynchronous devices.
23/CA Volume name:
Passes a character array representing a volume name that restricts the
file specified to a specific volume. The volume must reside within the
volume set of the group where the file resides. This option is applicable
only at file creation.
Only one of the following options can be in effect when a file is opened with