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

124 Chapter9
KSAM Intrinsics
FOPEN
files.
0111
Allows execute/read access only, if the file's security
provisions allow execute access. This access allows only
read access to any loaded file. The program must be
running in PM to specify execute/read access. This access
is changed to execute (only) access for KSAM, CIR, and
RIO files. This option is not valid for message files.
Default: 0000
10:1 Dynamic locking
Enables/disables file locking for the file. When this option
is specified, the FLOCK and FUNLOCK intrinsics can be used
to dynamically permit or restrict concurrent access to a
disk file by other processes at specified times.
The following bit settings are valid:
0
Disallow dynamic locking/unlocking.
1
Allow dynamic locking/unlocking.
Default: 0
If several accessors are sharing the file, they must all
specify, or not specify, this option. For example, if a file is
opened with the dynamic locking option enabled, and a
subsequent accessor tries to open the file with dynamic
locking disabled, the subsequent attempt to open fails.
NOTE
The file system does not guarantee exclusive access, even when FLOCK and
FUNLOCK are used, unless all programs that access the file cooperate by using
locking. A program that opens the file with dynamic locking enabled will still
be allowd to modify the file, even if it never calls FLOCK.
8:2 Exclusive option
Indicates continuous exclusive access to this file, from
open to close. Use this option when performing a critical
operation (for example, updating the file).
The following bit settings are valid:
00
If access type option (
aoption
bit (12:4)) specifies read
only access, then read-share access takes effect.
Otherwise, exclusive access takes effect. Regardless of
which access option was selected, FFILEINFO reports zero.