Sequential Files
The last input/output statement that was executed for the file must have been a successful READ statement. The record to be replaced is the record that was retrieved by that statement.
The INVALID KEY and NOT INVALID KEY phrases must not be specified. An EXCEPTION/ERROR procedure may be specified.
For files with sequential organization, the number of characters in record-name-1 must equal the number of character positions in the record being replaced.