File Name Locking: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(Created page with "In addition to the file-sharing facility described in the Share Specs, Business Rules! has the ability to reserve a full path name for the exclusive use of a [[workstation...")
 
No edit summary
 
Line 1: Line 1:
In addition to the file-sharing facility described in the [[Share Specs]], Business Rules! has the ability to reserve a full path name for the exclusive use of a [[workstation]] by means of the [[RESERVE]] parameter in either the [[PROTECT]] command or the OPEN statement.  This is known as '''File Name Locking'''
In addition to the file-sharing facility described in the [[Share Specs]], Business Rules! has the ability to reserve a full path name for the exclusive use of a [[workstation]] by means of the [[RESERVE]] parameter in either the [[PROTECT]] command or the OPEN statement.  This is known as '''File Name Locking'''


The primary difference between file name locking with the RESERVE parameter and file locking with [[NOSHR]] is that RESERVE keeps a file locked even when it is not open. The [[RELEASE]] parameter can be used both in the PROTECT command and in the [[CLOSE]] statement to release a reserved file name. All file reservations issued from a particular workstation are automatically released when that workstation exits from Business Rules!. Another difference between NOSHR and RESERVE is that NOSHR affects other OPENs by the same workstation (except for multiple index files), but RESERVE does not.
The primary difference between file name locking with the RESERVE parameter and file locking with [[NOSHR]] is that RESERVE keeps a file locked even when it is not open. The [[RELEASE]] parameter can be used both in the [[PROTECT]] command and in the [[CLOSE]] statement to release a reserved file name. All file reservations issued from a particular workstation are automatically released when that workstation exits from Business Rules!. Another difference between NOSHR and RESERVE is that NOSHR affects other OPENs by the same workstation (except for multiple index files), but RESERVE does not.


<noinclude>
<noinclude>
[[Category:Multi-User Programming]]
[[Category:Multi-User Programming]]
</noinclude>
</noinclude>

Latest revision as of 16:55, 31 May 2013

In addition to the file-sharing facility described in the Share Specs, Business Rules! has the ability to reserve a full path name for the exclusive use of a workstation by means of the RESERVE parameter in either the PROTECT command or the OPEN statement. This is known as File Name Locking

The primary difference between file name locking with the RESERVE parameter and file locking with NOSHR is that RESERVE keeps a file locked even when it is not open. The RELEASE parameter can be used both in the PROTECT command and in the CLOSE statement to release a reserved file name. All file reservations issued from a particular workstation are automatically released when that workstation exits from Business Rules!. Another difference between NOSHR and RESERVE is that NOSHR affects other OPENs by the same workstation (except for multiple index files), but RESERVE does not.