Informix Error -16358: Variable name expected.
Cause and resolution
Variable name expected.
A LET command requires as its first argument a variable name. Do not put quotes around the name.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-16358 fires when a LET command's first argument isn't a bare variable name — per the
official guidance.
- A
LETcommand's first argument quoted, or otherwise not a plain variable name, per the official guidance — the direct, only cause.
Solutions / Resolution
- Supply a variable name as the first argument, without quotes, per the official guidance.
Examples
A LET command with a quoted variable name
> LET "x" = 5
Corrected
> LET x = 5
Diagnostic Checks
- Check that the
LETcommand's first argument is an unquoted variable name.
Related Errors / Related Topics
- -16317 — "Program variable name expected." The same missing/invalid-variable-name
condition in a
LETcommand.
A LET command's first argument isn't a plain variable name — remove any quotes around it.