Informix Error -4508: PRINT FILE error - cannot open file filename for reading.
Cause and resolution
PRINT FILE error - cannot open file filename for reading.
See error -1325, which has replaced this error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4508 is a legacy code — per the official guidance, it has been replaced by error -1325. That
code's own addendum has not yet been written in this project, but the underlying condition is
documented consistently across this legacy-code family: a PRINT FILE statement's named file
could not be opened for reading.
- This exact wording is superseded, per the official guidance — -1325 now covers the same underlying condition.
Solutions / Resolution
- Treat this as -1325, per the official guidance, and confirm the named file exists and is readable by the process running the report.
Examples
A PRINT FILE target that doesn't exist or isn't readable
PRINT FILE "logo.txt"
-- -1325 (formerly -4508): logo.txt is missing, or unreadable by this process
Diagnostic Checks
- Confirm the environment/version reporting -4508 rather than -1325.
- Check that the file named in the
PRINT FILEstatement exists and is readable by the process running the report.
Related Errors / Related Topics
- -1325 — cited by -4508's own official text as its replacement. Not independently documented on the live catalog (it currently returns "Unknown Error Number" there), so no title is quoted here.
-4508 has been replaced by -1325 — a PRINT FILE target couldn't be opened for reading; check
that the file exists and is readable.