Returning a value using the RETURN statement

The RETURN statement returns a single integer value to the calling environment, causing an immediate exit from the procedure.

See ”Returning a value using the RETURN statement” in SQL Anywhere Server - SQL Usage.