Informix Error -802
-802 Cannot open file for run.
The SQL command file that you specified cannot be opened for reading. Review the filename that you specified. If it is spelled as you intended, check that it exists in the current directory or in a directory that is named in the DBPATH environment variable and that your account has read permission for it.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-802 fires when a SQL command file named for execution (in an interactive tool like dbaccess)
can't be opened for reading — per the official guidance, three possibilities: a misspelled
filename, a file not present in the current directory or DBPATH, or a permissions problem.
- A misspelled filename, per the official guidance — the most direct, common cause.
- The file present but not in the current directory or a directory named in
DBPATH, per the official guidance — the tool searches those specific locations, not an arbitrary path. - Insufficient read permission on the file, per the official guidance.
Solutions / Resolution
- Review the filename for correct spelling, per the official guidance.
- Check the file exists in the current directory, or in a directory listed in
DBPATH, per the official guidance:echo "$DBPATH" ls -l ./the_file.sql - Check the account's read permission on the file, per the official guidance:
ls -l the_file.sql
Examples
Checking DBPATH and file presence
$ echo "$DBPATH"
$ ls -l the_file.sql
ls: the_file.sql: No such file or directory
Confirms the file isn't in the current directory — check DBPATH's listed directories next, or
correct the filename/path.
Diagnostic Checks
- Check the filename spelling.
- Check
DBPATHand the current directory for the file's actual presence. - Check read permission on the file once its presence is confirmed.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -802 in this set yet.
Check spelling, then presence in the current directory or DBPATH, then read permission — in
that order, per the official guidance's own sequence.