When trying to export a result set or a query with an "WITH" statement the error SQL0199N is returned (see Attachment). When using the Import Wizard to import from a query to a new table, the "WITH" statement works.

Refer to word attached for complete steps to reproduce the issue.
WORKAROUND
NoneIssue fixed in version 6.1. The latest version of Toad for DB2 can be downloaded here .