NO LOCK Phrase
IBM Extension
IBM Extension
The NO LOCK phrase prevents the START operation from obtaining record locks on files that are opened in I-O (update) mode. In addition, a START statement bearing the NO LOCK phrase will be successful even if the record that satisfies the key value comparison has been locked by another job. A START statement bearing this phrase releases records that have been locked by a previous START operation.
If this phrase is used for a file that is not open in I-O mode, an error message is issued.
For information about file and record locking, see the IBM® Rational® Development Studio for i: ILE COBOL Programmer's Guide.
Related Information:
End of IBM Extension End of IBM Extension
- file-name-1
- Must be a file with sequential or dynamic access. File-name-1 must be defined in an FD entry in the Data Division, and must not name a sort file.