The statement-local variable

When you call a user-defined function that has an OUT parameter, you must declare a statement-local variable (SLV) in the WHERE clause of the SQL statement. The SLV holds the value that the OUT parameter returns. Other parts of the SQL statement can then access the OUT parameter value through the SLV.

For example, the following SELECT statement calls the out_test() function (which the code fragment in The statement-local variable defines) and saves the result of the OUT parameter in a statement-local variable named weight:
SELECT title, weight FROM mytab
   WHERE out_test(title, 'aaa', weight # INTEGER);

The SELECT statement specifies the statement-local variable in its select list so it can return the value of the OUT parameter.

For more information about the syntax and use of SLVs, see the description of how to return multiple values from a function in the Informix® User-Defined Routines and Data Types Developer's Guide.