To capture an SQL statement from DB2 QMF for TSO/CICS:
Run
advisors and tools on the statement. For help on the Run
Single-Query Advisors and Analysis Tools page, click the button
at the top of the page or in the two sections. You can also click
at the top of the page or in a section and then press F1.