Informix Error -811: Cannot open printer for output.
Cause and resolution
Cannot open printer for output.
The application is trying to open the device that is specified in the DBPRINT environment variable but is failing. Check the setting of that variable, and rerun the program.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-811 fires when the interactive tool can't open the device named in the DBPRINT environment
variable — per the official guidance, checking that variable's setting is the documented first
step.
DBPRINTset to a device/path that doesn't exist or isn't accessible, per the official guidance — the direct, common cause.DBPRINTunset or set to an empty value, leaving no valid target device at all.- Insufficient permission to open the device named in
DBPRINT, for the connecting OS user.
Solutions / Resolution
- Check the setting of
DBPRINT, per the official guidance:echo "$DBPRINT" - Confirm the named device/path actually exists and is accessible, correcting
DBPRINTif not. - Rerun the program, per the official guidance, once
DBPRINTis corrected.
Examples
Checking DBPRINT
$ echo "$DBPRINT"
/dev/nonexistent_printer
$ ls -l /dev/nonexistent_printer
ls: /dev/nonexistent_printer: No such file or directory
Confirms DBPRINT points at a device that doesn't exist — correct it and rerun.
Diagnostic Checks
- Check
DBPRINT's current value, and confirm the device/path it names actually exists and is accessible.
Related Errors / Related Topics
- -812 — "Cannot open pipe for output." A related output-destination error, for a pipe to a program/command rather than a printer device.
Check DBPRINT's setting first, per the official guidance — confirm the named device actually
exists and is accessible.