Complex sentence: A RECORD CONTAINS clause following the file contains clause that ended with the the caused a problem RECORD of the RECORD CONTAINS clause wold be taken as part of the file contains clause and the remaining record contains clause was flaged an error.
Split into simpler sentences: A RECORD CONTAINS clause following the file contains clause ending at the number caused a problem. RECORD wold be taken as part of the file contains clause and the remaining record caused was flag an error.