Online Documentation for SQL Query for DB2
Setting log options
The Logs section of the Database Info dialog allows you to set SQL Query logging parameters.
Enable log of SQL queries
Check this option if you wish to log your SQL queries in a file.
SQL Editor log file
This field is enabled if the Enable log of SQL queries option is selected. Here you can specify the path to the *.sql file to store the logs of SQL queries.