If an error occurs while a record is being read, an attempt is made to obtain the record by rereading the error record several times. If the error record is unreadable and error recovery is not requested, SORT terminates. If error recovery is requested, SORT attempts to read its duplicate copy of the error record.