Informix Error -1322
-1322 A report output file cannot be opened.
The file that the REPORT TO statement specifies cannot be opened. Check that your account has permission to write such a file, that the disk is not full, and that you have not exceeded some limit on the number of open files.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1322 fires when the file named in a REPORT TO statement can't be opened — per the official
guidance, this can be a permissions problem, a full disk, or an open-file limit.
- The account lacking write permission for the target file/directory, per the official guidance — the first named check.
- The disk being full, per the official guidance — the second named check.
- The account having exceeded a limit on the number of open files, per the official guidance — the third named check.
Solutions / Resolution
- Check that your account has permission to write such a file, per the official guidance.
- Check that the disk is not full, per the official guidance.
- Check that you have not exceeded some limit on the number of open files, per the official guidance.
Examples
Checking permissions, disk space, and open-file limits
$ ls -ld /path/to/report/dir
$ df -h /path/to/report/dir
$ ulimit -n
Diagnostic Checks
- Check write permissions on the target path.
- Check available disk space.
- Check the current open-file count against the account's limit.
Related Errors / Related Topics
- -1323 — "A report output pipe cannot be opened." A related report-output error, for
REPORT TO PIPErather than a plain file. - -1324 — "A report output file cannot be written to." A related report-output error, about a file that opened successfully but failed during writing.
The REPORT TO output file couldn't be opened — check permissions, disk space, and open-file
limits.