Informix Error -22279: Cannot open COBOL temp file file-name.
Cause and resolution
Cannot open COBOL temp file file-name.
The directory in which the COBOL temporary files are being created (usually /tmp or whatever is specified when the DBTEMP environment variable is set) is full. No room is available to open new files. Check this directory and free some space. Since Version 5.01, the IBM Informix SE database server uses the DBTEMP environment variable, but IBM Informix Dynamic Server and IBM Informix OnLine Dynamic Server do not.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-22279 fires when the directory used for COBOL temporary files (typically /tmp, or the
DBTEMP-configured directory) is full — per the official guidance, no room is available
to open new files.
- The COBOL temporary-file directory being full, per the official guidance — the
direct, only cause; note that only IBM Informix SE (since v5.01) uses
DBTEMP— IBM Informix Dynamic Server/OnLine Dynamic Server don't.
Solutions / Resolution
- Check the temporary-file directory and free some space, per the official guidance.
Examples
Checking DBTEMP (Informix SE) or /tmp
$ echo $DBTEMP
$ df -h /tmp
Diagnostic Checks
- Check the free space on the COBOL temporary-file directory (
DBTEMPon Informix SE, otherwise/tmp), and free space if it's full.
Related Errors / Related Topics
- -22278 — "Cannot open COBOL 'whenever' file file-name." The same class of
temporary-directory-full error, specific to the
wheneverfile rather than a general temp file.
The COBOL temporary-file directory was full, blocking a temp file's creation — free space in it.