To embed SQL statements withn a REXX exec, the host command environment must be changed, The ADDRESS instruction, followed by the name of the environment, is used to change the host command environment.
The REXX/CICS command envlironment that supports SQL statements is EXECSQL.