DB2 Web Query Tool allows you to export your query results to a DB2 table, so you can work with your results in your DB2 database. You can add your query results to an existing DB2 table, or you can create a new DB2 table containing your results.
Fields and controls for the Select Output page
Fields and controls for the Tables page
Fields and controls for the Table Definition page
To add results to an existing DB2 table:
1. In the desired connection branch of the DB2 Web Query Tool navigation tree, expand the Data branch. Temporary and saved results sets are listed.
2. Navigate through the DB2 Web Query tree until the results set that you want to open is visible.
3. Click the results set that you want to open. A drop-down menu appears.
4. On the drop-down menu, click Open. The Select Output page opens.
5. Select DB2 Table, and click Process. The Tables page opens.
6. From the list of existing tables, select the table to which you want to add the results set, and click Select.
The Table Definition page opens.
7. In the Commit Scope field, type the commit scope.
Tip: The commit scope is the number of actions that are performed on the table before the changes are committed to the database. For example, if you specify a commit scope of 50, after 50 actions are performed on the table, all changes are committed to the database.
8. Select an import action. To add your results set to the data in the table, select Append. To replace the current data in the table, select Replace (The current data in the table is removed, then the new data is inserted into the table). To update the existing records in a table, select Update, then specify the appropriate keys in the Key column.
9. Optional: Check the Assume Current Date/Time radio button to specify that if a timestamp, date or time field is blank the current date and time will be filled in. If you do not check this check box, midnight January first of the current year will be filled in.
10. Indicate the appropriate action to take if an error is encountered. Select the Skip radio button to skip the error and continue, or select the Stop radio button to have the process stop if an error is encountered.
11. In the From column, match the results set column with the table column to which you want to export your data.
12. Click Create.
DB2 Web Query Tool adds the results set to the existing table, using the options that you specified, and displays a confirmation message.