You can use nested compound statements to give you more control over which statements execute following an error and which do not.
See ”Nested compound statements and exception handlers” in SQL Anywhere Server - SQL Usage.