[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+---------------+##########################################################
#+-| SET EXCLUSIVE |-------------------------------------------------------+##
#| +---------------+ The SET EXCLUSIVE command designates whether database |##
#| or index files are opened as exclusive or shared |##
#+-------------------------------------------------------------------------+##
##############################################################################
##############################################################################
#+--| Syntax |-----------------------+########################################
#| SET EXCLUSIVE <ON || OFF> |########################################
#+-----------------------------------+########################################
##############################################################################
##############################################################################
#####+---| Description |------------------------------------------------+#####
#####| SET EXCLUSIVE ON determines that a database and its files opened |#####
#####| with the USE or OPEN commands are exclusive. SET EXCLUSIVE OFF |#####
#####| determines that a database and its files opened with either OPEN |#####
#####| or USE...EXCLUSIVE, regardless of their SET EXCLUSIVE status, |#####
#####| are exclusive. The default value of SET EXCLUSIVE is ON. |#####
#####+------------------------------------------------------------------+#####
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| * Have all databases opened in shared mode. |#########
#########| |#########
#########| PROCEDURE force_main |#########
#########| SET EXCLUSIVE OFF |#########
#########| DO open_databases |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| * Open a subset of the databases in shared mode, |#########
#########| * the others in exclusive mode. |#########
#########| |#########
#########| SET EXCLUSIVE OFF |#########
#########| DO open_files WITH s[] |#########
#########| SET EXCLUSIVE ON |#########
#########| DO open_files WITH e[] |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
OPEN
USE
net_err()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson