DB2 Connect User's Guide

Using Import and Export Utilities

The import and export utilities let you move data from a S/390 host or AS/400 database to a file on the DB2 Connect workstation or vice versa. You can then use this data with any other application or RDBMS that supports this import/export format. For example, you can export data from DB2 for OS/390 into a delimited ASCII file and later import it into a DB2 UDB for Windows 2000 database.

You can perform export and import functions from a database client or from the DB2 Connect workstation.

Notes:

  1. The data to be imported or exported must comply with the size and data type restrictions of both databases.

  2. To improve import performance, you can use compound SQL. Specify COMPOUND=number in the import API or the CLP filetype-mod string parameter to group the specified number of SQL statements into a block. This may reduce network overhead and improve response time.

  3. For information on the syntax of the import and export utilities from the Command Line Processor, refer to the Command Reference.

Moving Data from a Workstation to a S/390 or AS/400 Database Server

To export to an S/390 or AS/400 database server:

  1. Export the rows of information from the DB2 UDB for Unix, Windows NT, Windows 2000, OS/2 table into a PC/IXF file.
  2. If the DRDA server database does not contain a table having attributes compatible with the information to be imported into it, create a compatible table.
  3. Using the INSERT option, import the PC/IXF file to a table in the DRDA server database.

Moving Data from a DRDA Server to a Workstation

To import data from a DRDA server database:

  1. Export the rows of information from the DRDA server database table to a PC/IXF file.
  2. Use the PC/IXF file for importing to a DB2 table.

Restrictions

With the DB2 Connect program, import or export operations must meet the following conditions:

If these conditions are violated, the operation will fail and an error message will be generated.

Mixed Single-Byte and Double-Byte Data

If you import and export mixed data (columns containing both single-byte and double-byte data), consider the following:

Replacement for SQLQMF Utility

The function of the SQLQMF utility with DDCS for OS/2 has been replaced by the DB2 Connect Import/Export functions. The advantages are:

For more information on using these commands, refer to the Command Reference.


[ Top of Page | Previous Page | Next Page ]