Query remote servers using DB2 Universal Database for iSeries query management function

The DB2 Universal Databaseā„¢ for iSeriesā„¢ query management function provides almost the same support as Interactive SQL for querying a remote server and returning the results in an output file to the local server.

Both Interactive SQL and the query management function can perform data manipulation operations (INSERT, DELETE, SELECT, and so on) for files or tables without the requirement that the table (or file) already exist in a collection (it can exist in a library). Also, query management uses SQL CREATE TABLE statements to provide data definition when a new table is created on the server as a result of the query. Tables created from a query management function follow the same guidelines and restrictions that apply to a table created using SQL.

However, the query management function does not allow you to specify a member when you want to add the results to a file or table. The results of a query function are placed in the first file member unless you use the Override with Database File (OVRDBF) command to specify a different member before starting the query management function.

Related concepts
Query Management Programming PDF
Related reference
Override with Database File (OVRDBF) command