Microsoft V2.0 Additional Syntax Support [ COBOL/HP-UX Language Reference for the Series 700 and 800 ] MPE/iX 5.0 Documentation
COBOL/HP-UX Language Reference for the Series 700 and 800
Microsoft V2.0 Additional Syntax Support
Record LOCKING
Function
If you set the MS directive, the LOCKING clause in the SELECT statement
is supported.
General Format
General Rules
1. For SEQUENTIAL and LINE SEQUENTIAL files only EXCLUSIVE locking is
allowed.
2. If MANUAL is specified multiple locks can be applied to the file.
3. If AUTOMATIC is 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 statement is
supported.
General Rules
1. For SEQUENTIAL and LINE SEQUENTIAL files only EXCLUSIVE is
allowed.
2. If 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.
READ file-name [NEXT] RECORD [LOCK] [WAIT] [ INTO identifier]
START Statement
If you set the MS directive the LOCK and WAIT clauses in the START
statement are allowed and treated as documentary.
START file-name [LOCK] [WAIT] . . .
UNLOCK Statement
The UNLOCK statement removes all locks from a file.
MPE/iX 5.0 Documentation