You can do odbc traces by adding entries in the db2cli.ini file.
Alternatively, if its running on a pc workstation, you can try the odbc trace option in control panel, that works but it puts out huge trace files. but, you should be able to get the sql out of the trace.
If its running on some...