Microsoft V2.0 Additional Syntax Support [ Micro Focus COBOL Language Reference - Additional Topics ] MPE/iX 5.0 Documentation
Micro Focus COBOL Language Reference - Additional Topics
Microsoft V2.0 Additional Syntax Support
Record LOCKING
Function.
If you set the MS directive, the LOCKINGclause in the SELECT statement is
supported.
General Format.
General Rules.
1. For SEQUENTIAL and LINE SEQUENTIAL files only EXCLUSIVElocking is
allowed.
2. If MANUALis specified multiple locks can be applied to the file.
3. If AUTOMATICis specified a single lock is applied automatically to
the current record.
4. For SEQUENTIAL and LINE SEQUENTIAL files the default LOCKING mode
is EXCLUSIVE.
5. For RELATIVE and INDEXED files the default LOCKING mode is
AUTOMATIC.
6. If the MANUAL option is specified the UNLOCK statement will
release all locks.
OPEN LOCKING Statement
If you set the MS directive the LOCKING clause in the OPEN statementis
supported.
General Format.
General Rules.
1. For SEQUENTIAL and LINE SEQUENTIAL files only EXCLUSIVE is
allowed.
2. If the NO LOCKING phase is specified EXCLUSIVE is implied.
READ Statement (in Manual mode)
If you set the MS directive, the WAIT clause in the READ statement is
allowed and treated as documentary.
General Format.
START Statement
If you set the MS directive the LOCK and WAIT clauses in the START
statement are allowed and treated as documentary.
General Format.
MPE/iX 5.0 Documentation