Sometimes you need to copy DB2 data to MongoDB, you can use Withdata DBToMongo as DB2 to MongoDB Copier (Converter / Transferor).
Works GREAT in 2025.
Support all MongoDB deployment types: standalone, replica set, sharded cluster, and MongoDB Atlas.
Can run in GUI mode, Step by Step, just a few mouse clicks.
Can run in CLI (Command Line Interface), for Scheduled Tasks and Streams, for Automation.
Start Withdata DBToMongo.
Login to DB2.

Login to MongoDB.

Click "Convert From Query" at task dialog.

then show the wizard.
1. Enter source DB2 query.

2. Choose destination MongoDB collection and config fields.

3. Set rows options.

4. Export DB2 query results to MongoDB collection.

Click "View", See MongoDB collection data.

Click "Convert From Table" at task dialog.

then show the wizard.
1. Choose source DB2 table.

2. Choose destination MongoDB collection and config fields.

3. Set rows options.

4. Copy DB2 table data to MongoDB collection.

Click "View", See MongoDB collection data.

Click "Convert Similar Tables" at task dialog.

then show the wizard.
1. Select source DB2 tables.

2. Choose a destination MongoDB collection and config fields.

3. Set rows options.

4. Copy data from DB2 to MongoDB.

Click "View", See MongoDB collection data.

Click "Convert All Tables" at task dialog.

then show the wizard.
1. Select source tables.

2. Target collections, choice "Import Type".

3. Map DB2 tables to MongoDB collections.

4. Summary.

5. Batch copy DB2 data to MongoDB.

Click "View", See MongoDB collection data.

After coping DB2 data to MongoDB in GUI, and Saving "DB2 to MongoDB" session, then you can:
After coping DB2 data to MongoDB in Command Line, then you can schedule and automate "DB2 to MongoDB" conversion task by: