Informix Error -1396
-1396 A report PRINT FILE source file cannot be opened for reading.
The file that is named in a PRINT FILE statement cannot be opened. Review the file name. If it is not in the current directory, you must specify a full path. If the file is specified correctly, check that it exists and that your account has file permissions to read it. Look for operating-system error messages that might give more details.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1396 fires when the file named in a PRINT FILE statement can't be accessed — per the official
guidance, this covers a wrong filename, a missing path, the file not existing, or a permissions
problem.
- An incorrect filename, per the official guidance — the first named check.
- A relative path that doesn't resolve because the file isn't in the current directory, per the official guidance — the second named check.
- The file not existing, per the official guidance — the third named check.
- The account lacking read permission on the file, per the official guidance — the fourth named check.
Solutions / Resolution
- Verify the filename is correct, per the official guidance.
- Provide a full path if the file isn't in the current directory, per the official guidance.
- Confirm the file exists, per the official guidance.
- Check that your account has read permissions, per the official guidance.
- Review operating-system error messages for additional details, per the official guidance.
Examples
Checking file existence and permissions
$ ls -l /path/to/print_source.txt
Diagnostic Checks
- Check the filename, path, existence, and read permissions for the
PRINT FILEsource file, in that order.
Related Errors / Related Topics
- -1322 — "A report output file cannot be opened." A related report-file error, about the
output file rather than a
PRINT FILEsource file being read from.
The PRINT FILE source file couldn't be opened — check filename, path, existence, and read
permissions.