Using Compound Statements

Compound statements can be nested, and combined with other control statements to define execution flow in procedures or in batches.

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

Related concepts
SQL Statements Allowed in Procedures
Structure of Procedures
Transactions and Savepoints in Procedures