Using the EXECUTE IMMEDIATE Statement In Procedures

The EXECUTE IMMEDIATE statement allows statements to be compiled inside procedures using a combination of literal strings (in quotes) and variables.

See SQL Anywhere Server - SQL Usage > Stored Procedures and Triggers > Using procedures, triggers, and batches > Using the EXECUTE IMMEDIATE statement in procedures.

Note: This reference points to SQL Anywhere documentation.