Informix Error -19839: Invalid OPTCOMPIND value specified.
Cause and resolution
Invalid OPTCOMPIND value specified.
The value of OPTCOMPIND must range from 0 to 2.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-19839 fires when OPTCOMPIND is set outside its valid range — per the official guidance:
0 to 2.
- An
OPTCOMPINDvalue outside0to2, per the official guidance — the direct, only cause.
Solutions / Resolution
- Set
OPTCOMPINDto a value between0and2, per the official guidance.
Examples
An out-of-range OPTCOMPIND
SET ENVIRONMENT OPTCOMPIND '5';
Corrected
SET ENVIRONMENT OPTCOMPIND '2';
Diagnostic Checks
- Check the
OPTCOMPINDvalue against the0to2valid range.
Related Errors / Related Topics
- -19848 — "Incorrect STAR_JOIN value specified." A related session optimization
environment-variable error, about
STAR_JOIN's enumerated values rather thanOPTCOMPIND's numeric range.
OPTCOMPIND was set outside 0 to 2 — use a value in that range.