Declarations In Compound Statements

Local declarations in a compound statement immediately follow the BEGIN keyword. These local declarations exist only within the compound statement.

See SQL Anywhere 11.0.1 > SQL Anywhere Server - SQL Usage > Stored Procedures and Triggers > Using procedures, triggers, and batches > Control statements > Declarations in compound statements.