Most SQL statements are acceptable in batches, with some exceptions.
See SQL Anywhere Server - SQL Usage > Stored Procedures and Triggers > Using procedures, triggers, and batches > Statements allowed in procedures, triggers, events, and batches.