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

Appendix B 241
BASIC/V Intrinsics
BKOPEN
access
A numeric expression whose value indicates one of the permissible access
types:
0
Read only
. Use of procedures BKWRITE, BKREWRITE, and
BKDELETE are prohibited.
1
Write only
. Overwrites previously written data. Use of
the procedures BKREAD, BKREADBYKEY, BKREWRITE,
BKDELETE, and BKSTART are prohibited.
2
Write only
. Saves previously written data and adds
data. Use of the procedures BKREAD, BKREADBYKEY,
BKREWRITE, BKDELETE, and BKSTART are prohibited.
3
Read and write
. Use of procedures BKREWRITE and
BKDELETE prohibited. (
Default value.
)
4
Update access
. Allows all procedures described in this
section.
(
Optional parameter
) Default: If omitted or out of range, access is 3, read
and write access.
lock
A numeric expression whose value indicates whether dynamic locking can
take place. Acceptable values are:
0 Disallow dynamic locking and unlocking. Use of
procedures BKLOCK and BKUNLOCK prohibited. (
Default
value
.)
1 Allow dynamic locking and unlocking. Procedures BKLOCK
and BKUNLOCK may be used to permit or restrict
concurrent access to the file.
(
Optional parameter
) Default: If omitted or out of range, lock equals 0 to
disallow dynamic locking.
exclusive
A numeric expression whose value indicates the kind of exclusive access
desired for this file. If this parameter is omitted or is not one of the
following acceptable values, the default is assumed:
0 Depends on access parameter. If
access
= 0 (read only),
then users share access to this file as if
exclusive
were
set to 3. If
access
is not = 0, then access to this file is
exclusive as if
exclusive
were set to 1.
1 Exclusive. Prohibits other access to this file until either
the file has been closed or the process terminated. Only
the user who opened the file can access it while it is
currently open.
2 Semi-exclusive. Other users can access this file, but only
for read access. The file cannot be accessed to write,
rewrite, or delete records until it is closed or the process is
terminated. (Default value.)
3 Shared. Once the file is opened, it can be accessed