COBOL Runtime Error Code – 018 Read part record error: EOF before EOR o

In this post, you’ll learn about the COBOL runtime Error Code 018 and the reason why you are receiving it

COBOL Error Code :

018

Reason for this Error in COBOL

Read part record error: EOF before EOR or file open in wrong mode (Recoverable) -A part record has been found at the end of a file. Consequently your run-time system treats the data file as a record, and not finding a full record, reports this error. -Ensure that the record size you give when you read from or WRITE to a file is consistent.