COBOL file status codes
Look up COBOL file status codes and the I/O conditions they describe.
All 26 codes
File status 02Success, duplicate alternate keyFile status 04Record length doesn't match the FDFile status 05OPTIONAL file not present at OPENFile status 10End of fileFile status 21Key sequence errorFile status 22Duplicate keyFile status 23Record not foundFile status 24Boundary violation on an indexed or relative fileFile status 30Permanent error, no further informationFile status 34Boundary violation on a sequential fileFile status 35Required file not available at OPENFile status 37OPEN mode not supported by the fileFile status 38OPEN of a file closed WITH LOCKFile status 39File attributes conflict with the programFile status 41OPEN of a file that is already openFile status 42CLOSE of a file that isn't openFile status 43REWRITE or DELETE without a prior READFile status 44Record length not allowed on WRITE or REWRITEFile status 46READ with no valid next recordFile status 47READ on a file not open for inputFile status 48WRITE on a file not open for outputFile status 49REWRITE or DELETE on a file not open I-OFile status 90Unclassified error, no further informationFile status 93Resource not availableFile status 96No DD statement for the fileFile status 97OPEN successful, file integrity verified
No matching codes
Try the code number, part of the message, or another spelling.
Working with COBOL errors
A file status belongs to a specific I/O operation. Preserve the status, OPEN mode, file assignment and catalog or data-set information. End of file, duplicate keys and attribute mismatches require different application responses.
Browse all 494 error codes · WND Terminal’s offline code hints
Use WND Terminal with your host system
WND Software develops WND Terminal Emulator for mainframe, IBM i and UNIX access. For connection and keyboard features, see the 3270 terminal emulator or 5250 emulator for IBM i. Explain this screen provides screen-specific assistance using the model endpoint and context permitted by IT; the reference article explains the code independently.