Informix Error -35201: Cursor name must be an identifier.
Cause and resolution
Cursor name must be an identifier.
The cursor is not an identifier in the DECLARE CURSOR statement. It is probably given as a host variable and must be changed to a valid cursor identifier.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-35201 fires when a DECLARE CURSOR statement's cursor name isn't a valid identifier — per the
official guidance, this is probably because a host variable was given instead.
- A host variable supplied where a cursor identifier is required, per the official guidance — the specific, named likely cause.
Solutions / Resolution
- Change the cursor name to a valid cursor identifier, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a DECLARE CURSOR whose name isn't a
valid identifier.
Diagnostic Checks
- Check the
DECLARE CURSORstatement's cursor name — confirm it's a plain identifier, not a host variable reference.
Related Errors / Related Topics
- -35203 — "Cursor cursor name already defined." Another cursor-declaration error, about reuse rather than an invalid name.
- -35213 — "No cursor declaration for procedure name." The opposite problem: a cursor used without ever being declared.
- -35214 — "Cursor cursor name used with OPEN in more than one procedure." Another cursor-usage restriction.
- -35220 — "No OPEN procedure for cursor name." A related cursor-usage error, about a declared-but-unopened cursor.
A DECLARE CURSOR name was given as a host variable instead of a plain identifier — change it
to a valid cursor identifier.