The STRSQL green screen interface for running SQL statements is intended for running only a single SQL statement at a time, and does not support running multiple SQL statements separated by a ;.
Interfaces / applications designed to run SQL scripts (multiple SQL statements), like IBM i Navigator or RUNSQLSTM, support the use of ; as an SQL statement delimiter.
Support for ; as a statement delimiter is interface / application dependent.