You can use the SET QUERY statement: o In interactive SQL o Embedded in host language programs to be precompiled o As part of a procedure in an SQL module o In dynamic SQL as a statement to be dynamically executed Note that some options for the SET QUERY command may only be used in interactive SQL.