Paste a two-character file status (or search by keyword) and get the IBM meaning, typical causes, and a short recovery checklist. Built for Enterprise COBOL on z/OS - QSAM and VSAM.
How to use it
COBOL file status lookup
00
The I/O request finished normally. No further information.
Successful completion. High-order digit 0, low-order digit 0 — no further information.
Typical operations
OPEN, CLOSE, READ, WRITE, REWRITE, DELETE, START
Applies to
all
Need this at work?
Free account saves tutorial progress. The jobs board lists openings that ask for JCL.
Name a two-character field on FILE STATUS IS. COBOL updates it before AT END, INVALID KEY, or an EXCEPTION/ERROR declarative runs. You do not reset it yourself.
12345678910111213141516SELECT CUSTOMER-FILE ASSIGN TO CUSTFILE ORGANIZATION IS INDEXED ACCESS MODE IS DYNAMIC RECORD KEY IS CUST-KEY FILE STATUS IS FS-CODE VSAM-CODE. WORKING-STORAGE SECTION. 01 FS-CODE PIC XX. 88 FS-OK VALUE "00" "97". 88 FS-EOF VALUE "10". 88 FS-NOT-FOUND VALUE "23". 01 VSAM-CODE. 05 VSAM-RETURN PIC S9(4) COMP-5. 05 VSAM-FUNCTION PIC S9(4) COMP-5. 05 VSAM-FEEDBACK PIC S9(4) COMP-5.
Every time your program talks to a file, COBOL leaves a two-letter note in your pocket. “00” means “all good.” “10” means “no more pages in the book.” “35” means “I cannot find that book on the shelf.” “97” means “I found the book, but the last reader left it open - I checked it and it is fine.” Always look at the note before you keep going.
33 Enterprise COBOL statuses covered in the lookup above.
Declare FILE STATUS, 88-levels, and recovery patterns for batch COBOL.
Syntax for FILE STATUS IS and status checking examples.
VSAM-oriented status notes and organization/access context.
INPUT, OUTPUT, I-O, EXTEND and how open mode drives later status codes.
Meanings follow IBM Enterprise COBOL for z/OS Language Reference (file status key table) and Programming Guide notes on VSAM status codes / VSAMOPENFS. Message IDs such as IEC141I and IEC161I are the usual JES companions shops see next to these statuses - always confirm against your release's IBM message library.