Glossary

Always use FILE STATUS

Define a status field and check it after every I/O operation. 2. **Use INVALID KEY for expected conditions** -- Record not found, duplicate key, etc. 3. **Use FILE STATUS for unexpected conditions** -- I/O errors, file not open, etc. 4. **Log all errors** -- Write error details to an error file or l

Learn More

Related Terms