Using KSAM/XL and KSAM 64 (32650-90886)

Chapter 9 163
KSAM Intrinsics
HPFOPEN
20 CA Device name:
Passes the logical device number, in ASCII form, of a specific device. The
file is assumed to be permanent. If the device name option is specified,
the nonshareable device should be ready prior to the HPFOPEN call
(otherwise, an error results).
Only one of the following options can be in effect when a file is opened:
itemnum
=20
itemnum
=22
itemnum
=23
itemnum
=42
Default: 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:
%devname%
(% is the delimiter,
devname
is the designator)
fabcxyzf
(
f
is the delimiter,
abcxyz
is the designator)
For a KSAM file, the device must be a random access device such as a
disk.
Table 9-7. HPFOPEN Itemnum/Item Values
Itemnum Mnemonic Item Description