cobol3.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Message 0351 (↑ Syntax Messages)
 Key                                       Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Message:      0351
 
  Text:         'LOCK' clause specified for 'EXCLUSIVE' file
 
  Explanation:  You have specified a LOCK clause in a READ statement
                for a file that you have already locked with an
                EXCLUSIVE lock (in the FILE-CONTROL paragraph of your
                code).
 
  Resolution:   Record locking is impossible on a file which your run
                unit has already locked with an EXCLUSIVE lock.  To
                ensure that the two LOCK entries are compatible, you
                will have to either delete the LOCK entry in the
                relevant READ statement, or alter the LOCK MODE IS
                entry in the FILE-CONTROL paragraph.
                                    -♦-