Query optimizer debug messages issue informational messages to the job log about the implementation of a query. These messages explain what happened during the query optimization process. For example, you can learn:
The optimizer automatically logs messages for all queries it optimizes, including SQL, CLI, ODBC, OPNQRYF, and SQL Query Manager.
Viewing debug messages:
To view the messages, put your job into debug mode using one of the following methods:
STRDBG PGM(Library/program) UPDPROD(*YES)
STRDBG places in the job log information about all SQL statements that run.
Pressing F10 from the command Entry panel displays the message text. To see the second-level text, press F1 (Help). The second-level text sometimes offers hints for improving query performance.
See Query optimization performance information messages and Query optimization performance information messages and open data paths for the specific meanings of the debug messages.