Sequential Access Mode
For an indexed or relative file in sequential access mode,
- When the DELETE statement is processed, the system logically removes
the record retrieved and locked by the READ statement.
The last input/output statement must have been a successfully processed READ statement without the NO LOCK phrase.
If the last input/output statement was a successfully processed READ statement with the NO LOCK phrase:- The file status key, if defined, is set to 9S.
- The EXCEPTION/ERROR procedure, if any, is run.
- The DELETE statement is not processed.
IBM ExtensionIBM Extension If the last input/output statement was not a successfully processed READ statement, the file status key (if defined) is set to 43. End of IBM Extension
End of IBM ExtensionSee the IBM® Rational® Development Studio for i: ILE COBOL Programmer's Guide for information about file and record locking.
- For a file in sequential access mode, the INVALID KEY and NOT
INVALID KEY phrases must not be specified; however,
an EXCEPTION/ERROR procedure may be specified.
For information about error handling, see Common Processing Facilities.