Informix Error -16355: Function function-name requires parameters.
Cause and resolution
Function function-name requires parameters.
The function that the CALL command names is defined as taking one or more parameters. You must enter a matching number of parameters in the parentheses following the name of the function. If you are not sure what parameters should be passed to the function, use a VIEW command to display its source code.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-16355 fires when a CALL command names a function that takes parameters, but none (or too
few) are given — per the official guidance.
- A
CALLcommand missing one or more required parameters, per the official guidance — the direct, only cause.
Solutions / Resolution
- Enter a matching number of parameters in the parentheses following the function name, per the official guidance.
- Use
VIEWto display the function's source code if unsure what parameters it expects, per the official guidance.
Examples
A CALL command missing required parameters
> CALL myfunc()
Corrected
> CALL myfunc(arg1, arg2)
Diagnostic Checks
- Use
VIEWon the function's source to confirm its expected parameter count.
Related Errors / Related Topics
- -16356 — "Too many parameters passed to function function-name." The mirror-image error, about too many parameters rather than too few.
A CALL command is missing required parameters — check the function's expected parameter
count via VIEW.