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

Chapter 9 123
KSAM Intrinsics
FOPEN
Allows write access only, provided that the file's security
provisions allow write access. Any data written in the file
prior to the current FOPEN request is deleted.
FFINDBYKEY, FFINDN, FPOINT, FREAD, FREADBYKEY,
FREADC, FREADDIR, FREMOVE, FSPACE, and FUPDATE
intrinsic calls cannot reference this file. The EOF is set to
0.
0010
Allows write-save access only, if the file's security
provisions allow write access. Previous data in the file is
not deleted. FFINDBYKEY, FFINDN, FPOINT, FREAD,
FREADBYKEY, FREADC, FREADDIR, FREMOVE, FSPACE, and
FUPDATE intrinsic calls cannot reference this file.The EOF
is not changed. Therefore, data is overwritten if a call to
FWRITE is made. The system changes this value to append
for message files.
0011
Allows 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. For disk files, the EOF is
updated after each FWRITE call. Therefore, data cannot be
overwritten.
0100
Allows read/write (I/O) access only, provided that the file's
security provisions allows both read and write access. If
both read and write access are not allowed, the access type
specified in the security provisions (either read or write) is
allowed. 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.
0101
Allows update access only, if the file's security provisions
allows both read and write access. If both read and write
access are not allowed, the access type specified in the
security provisions (either read or write) is allowed. All file
intrinsics can be called for this file. The EOF is not
changed. This option is not valid for message files.
0110
Allows execute access only, if the file's security provisions
allow execute access. This access allows read/write access
to any loaded file. The program must be running in PM to
specify execute access. This option is not valid for message