Correct, DB2 supports the "dynamic compound statement".
This feature is meant to be used for ETL processing and other small DML
logic.
I don't think I want to advertise it to wholesale migrate PL/SQL scripts of
arbitrary complexity.
You will likely be better of migrating those to stored procedures.

Cheers
Serge