Informix Error -4306: The GLOBALS file "pathname" cannot be opened for reading.
Cause and resolution
The GLOBALS file "pathname" cannot be opened for reading.
The file specified in the GLOBALS statement cannot be opened. Check that the file exists and that you can read it, for example, by displaying it with an operating system command. If these items are correct, double-check the spelling of the pathname. If the file is not in the current directory, give the complete path.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4306 fires when the file named in a GLOBALS statement can't be opened — per the official
guidance, this is usually a missing file, a permissions issue, or an incorrect path.
- The
GLOBALSfile doesn't exist, per the official guidance — the first named cause. - The file exists but isn't readable, per the official guidance — the second named cause.
- The pathname is misspelled, or not given as a complete path when the file isn't in the current directory, per the official guidance — the third named cause.
Solutions / Resolution
- Check that the file exists and is readable (e.g. by displaying it with an OS command), per the official guidance.
- Double-check the spelling of the pathname, per the official guidance.
- Give the complete path if the file isn't in the current directory, per the official guidance.
Examples
Checking the GLOBALS file
cat common.4gl
Diagnostic Checks
- Check the
GLOBALSfile's existence, readability, and pathname spelling, giving a complete path if needed.
Related Errors / Related Topics
- -4010 — "Include file "pathname" is not found." A related file-inclusion error, about
INCLUDErather thanGLOBALS.
The GLOBALS file can't be opened — check its existence, permissions, and pathname.