📄 VSAM
VSAM File Status Codes
Beginner 🕑 12 min read
👁 0 views
12
Code Example
## VSAM File Status Codes
File status indicates success or failure of VSAM operations.
### Status Code Format
Two characters: XX
- First digit: General category
- Second digit: Specific condition
### Common Codes
| Code | Meaning |
|------|---------|
| 00 | Success |
| 02 | Duplicate alternate key |
| 10 | End of file |
| 21 | Sequence error |
| 22 | Duplicate primary key |
| 23 | Record not found |
| 24 | Boundary violation |
| 35 | File not found |
| 39 | Attribute mismatch |
| 41 | File already open |
| 42 | File not open |
| 46 | No valid READ before REWRITE |
| 47 | READ not permitted |
| 48 | WRITE not permitted |
| 49 | REWRITE/DELETE not permitted |
### Using Status Codes
Check after every I/O operation.