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

158 Chapter9
KSAM Intrinsics
HPFOPEN
11
Cont
I32 Access type:
3 Append access only, if the file's security provisions
allow either append or write access. FFINDBYKEY,
FFINDN, FPOINT, FREAD, FREADBYKEY, FREADC,
FREADDIR, FREMOVE, FSPACE, and FUPDATE intrinsic
calls cannot reference this file. The record pointer is set
to EOF prior to each FWRITE. For disk files, the EOF is
updated after each FWRITE call. Therefore, data cannot
be overwritten.
4 Read/write (I/O) access only, if the file's security
provisions allow both read and write access. If both
read and write access are not allowed, the access type
is limited to that specified in the security provisions
(either read or write). Any file intrinsic except
FUPDATE and FREMOVE can be called for this file. The
EOF is not changed. This option is not valid for
message files.
5 Update access only, if the file's security provisions
allow both read and write access. If both read and write
access are not allowed, the access type is limited to
that specified in the security provisions (either read or
write). All file intrinsics can be called for this file. The
EOF is not changed. This option is not valid for
message files.
6 Execute access only, if the file's security provisions
allow execute access. This allows read/write access to
any loaded file. The program must be running in
privileged mode to specify execute access. This option
is not valid for message files.
7 Execute-read access only, if the file's security
provisions allow execute access. This allows only read
access to a loaded file. The program must be running in
PM to specify execute-read access. This is changed to
execute access for KSAM, CIR, and RIO files. Not valid
for message files.
Table 9-7. HPFOPEN Itemnum/Item Values
Itemnum Mnemonic Item Description