Informix Error -807
-807 Cannot open file for output.
The program cannot create the file that you specified with the Save option. The file should be saved in the current directory. Possibly your account does not have write permission in that directory. Possibly a read-only file of the same name exists (to eliminate this possibility, try to save the file under a different name). Possibly the disk is full. Look for operating-system error messages that might give more information.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-807 fires when the interactive tool's Save option can't create the specified file — per the official guidance, three possibilities: no write permission in the current directory, a read-only file of the same name already existing, or a full disk.
- No write permission in the current directory, per the official guidance — the account lacks the OS-level permission needed to create a new file there.
- A read-only file of the same name already present, per the official guidance — saving under the same name would need to overwrite it, which fails if it's read-only.
- A full disk, per the official guidance.
Solutions / Resolution
- Check write permission in the current directory, per the official guidance:
ls -ld . - Try saving under a different name, per the official guidance, to rule out a read-only file of the same name blocking the save.
- Check disk space, per the official guidance:
df -h . - Check for OS-level error messages that might give more detail, per the official guidance.
Examples
Ruling out a read-only same-name file
$ ls -l existing_file.sql
-r--r--r-- 1 someuser someuser ... existing_file.sql
A read-only existing file of the same name explains the failure — save under a different name, or fix its permissions if overwriting it is genuinely intended.
Diagnostic Checks
- Check current-directory write permission, a same-name read-only file, and disk space — the three specific possibilities named by the official guidance, in that order.
Related Errors / Related Topics
- -810 — "Cannot open file for save." A closely related file-save error, in a slightly different interactive-tool context.
- -808 — "Cannot open file for choose." A related file-access error, for reading (Choose) rather than writing (Save/output).
Three specific named causes — no write permission, a read-only same-name file, or a full disk.