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

Note: This reference points to SQL Anywhere documentation.
Related concepts
SQL Statements Allowed in Procedures
Structure of Procedures
Transactions and Savepoints in Procedures