Multiple choice technology programming languages

Indicate which one of the following will not have the INVALID KEY Phrase when used in connection with sequentially accessed relative file in a PROCEDURE DIVISION with out any declarative section.

  1. REWRITE

  2. WRITE

  3. START

  4. READ

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

For sequentially accessed relative files, REWRITE does not use the INVALID KEY phrase because REWRITE in sequential mode operates on the last record read and doesn't involve key lookup. WRITE, START, and READ can all trigger INVALID KEY conditions in sequential relative file processing when key-related issues occur.