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 Server - SQL Usage > Stored Procedures and Triggers > Using procedures, triggers, and batches > Control statements > Declarations in compound statements.

Note: This reference points to SQL Anywhere documentation.