Informix Error -4300
-4300 This statement contains too many levels of function call nesting.
This statement has calls to functions that are nested within the parameter lists of other function calls, to a level exceeding four. The maximum level supported is four, as in the following expression: Afun(2-Bfun(3+Cfun(4*Dfun(5)))).
Rewrite the expression to store the result of the innermost function calls in a variable, and use the variable in the expression.