Informix Error -35218: Authorization clause required by ANSI X3.135-1989.
Cause and resolution
Authorization clause required by ANSI X3.135-1989.
This error message appears only when you use the -ansi option. Include an AUTHORIZATION clause to meet ANSI standards. See the IBM Informix Ada/SAME Programmer's Manual for more information about using the AUTHORIZATION clause.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-35218 fires only when the ESQL preprocessor is run with the -ansi option and an
AUTHORIZATION clause is missing — per the official guidance.
- The
-ansicompile option being used, with noAUTHORIZATIONclause present, per the official guidance — the direct, only cause.
Solutions / Resolution
- Include an
AUTHORIZATIONclause to meet ANSI standards, per the official guidance. - Consult the IBM Informix Ada/SAME Programmer's Manual for more on using the
AUTHORIZATIONclause, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a missing AUTHORIZATION clause under
-ansi.
Diagnostic Checks
- Confirm
-ansiis in effect, since this warning is suppressed without it. - Check the module for an
AUTHORIZATIONclause and add one if missing.
Related Errors / Related Topics
- -35206 — "Language must be Ada, instead of language name." Another ANSI X3.135-1989 compliance requirement.
- -35217 — "Language clause required by ANSI X3.135-1989." Another ANSI X3.135-1989 compliance requirement.
- -35219 — "At least one (SQLCODE) parameter required by ANSI X3.135-1989." Another ANSI X3.135-1989 compliance requirement.
An ANSI-compliant (-ansi) module was missing its required AUTHORIZATION clause — add one to
meet ANSI standards.