Knowledge Base > External Error Codes > COBOL - File Error Codes (Original Text From The Compiler Description)

COBOL - File Error Codes

Original Text From Compiler Description

Error Code Description

RT001  

Insufficient buffer space. On OS/2, could indicate that the SWAPPATH has not been set correctly or the SWAPPATH drive is full. Could also indicate an out of memory situation.

RT002  

File not open when access tried.

RT003  

Serial mode error.

RT004  

Illegal file name.

RT005  

Illegal device specification.

RT006  

Attempt to write to a file opened for input.

RT007  

Disk space exhausted.

RT008  

Attempt to input from a file opened for output.

RT009  

No room in directory (also, directory does not exist).

RT010  

File name not supplied.

RT012  

Attempt to open a file which is already open.

RT013  

File not found.

RT014  

Too many files open simultaneously.

RT015  

Too many indexed files open.

RT016  

Too many device files open.

RT017  

Record error: probably zero length.

RT018  

Read part record error: EOF before EOR or file open in wrong mode.

RT019  

Rewrite error: open mode or access mode wrong.

RT020  

Device or resource busy.

RT021  

File is a directory.

RT022  

Illegal or impossible access mode for OPEN.

RT023  

Illegal or impossible access mode for CLOSE.

RT024  

Disk I/O error.

RT025  

Operating system data error.

RT026  

Block I/O error.

RT027  

Device not available.

RT028  

No space on device.

RT029  

Attempt to delete open file.

RT030  

File system is read only.

RT031  

Not owner of file.

RT032  

Too many indexed files, or no such process.

RT033  

Physical I/O error.

RT034  

Incorrect mode or file descriptor.

RT035  

Attempt to access a file with incorrect permission.

RT036  

File already exists.

RT037  

File access denied.

RT038  

Disk not compatible.

RT039  

File not compatible.

RT040  

Language initialization not set up correctly.

RT041  

Corrupt index file.

RT042  

Attempt to write on broken pipe.

RT043  

File information missing for indexed file.

RT045  

Attempt to open an NLS file using an incompatible program.

RT047  

Indexed structure overflow. (Could indicate that you have reached the maximum number of duplicate keys.)

RT065

File locked.

RT066  

Attempt to add duplicate record key to indexed file.

RT067  

Indexed file not open.

RT068  

Record locked.

RT069  

Illegal argument to ISAM module.

RT070  

Too many indexed files open.

RT071  

Bad indexed file format.

RT072  

End of indexed file.

RT073  

No record found in indexed file.

RT074  

No current record in indexed file.

RT075  

Indexed data file name too long.

RT077  

Internal ISAM module failure.

RT078  

Illegal key description in indexed file.

RT081  

Key already exists in indexed file.

RT100  

Invalid file operation.

RT101  

Illegal operation on an indexed file.

RT102  

Sequential file with non-integral number of records.

RT104  

Null file name used in a file operation.

RT105  

Memory allocation error.

RT129  

Attempt to access record zero of relative file.

RT135  

File must not exist.

RT138  

File closed with lock - cannot be opened.

RT139  

Record length or key data inconsistency.

RT141  

File already open - cannot be opened.

RT142  

File not open - cannot be closed.

RT143  

REWRITE/DELETE in sequential mode not preceded by successful READ.

RT146  

No current record defined for sequential read.

RT147  

Wrong open mode or access mode for READ/START.

RT148  

Wrong open mode or access mode for WRITE.

RT149  

Wrong open mode or access mode for REWRITE/ DELETE.

RT150  

Program abandoned at user request.

RT151  

Random read on sequential file.

RT152  

REWRITE on file not opened I-O.

RT158  

Attempt to REWRITE to a line-sequential file.

RT159  

Malformed line sequential-file.

RT161  

File header not found.

RT173  

Called program not found.

RT180  

End-of-file marker error.

RT182  

Console input or console output open in wrong direction.

RT183  

Attempt to open line sequential file for I-O.

RT188  

File name too large.

RT193  

Error in variable length count.

RT194  

File size too large.

RT195  

DELETE/REWRITE not preceded by a READ.

RT196  

Record number too large in relative or indexed file.

RT210  

File is closed with lock.

RT213  

Too many locks.

RT218  

Malformed MULTIPLE REEL/UNIT file.

RT219  

Operating system shared file limit exceeded.