Want to export data from DB2 query to CSV file?
Using DB To File, a CSV exporter for DB2 on Windows, MacOS, and Linux, you can export data from DB2 query to CSV file easily and fast.
- Can run in GUI mode, Step by Step, just a few mouse clicks.
- Can run in Command line, for Scheduled Tasks and Streams.
Download DBToFile
Windows 64 bit
Windows 32 bit
Linux .deb (For Debian, Ubuntu) 64 bit
Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit
MacOS 64 bit
Export data from DB2 query to CSV file
Login to DB2 -> Enter DB2 query -> Set CSV file options -> Export DB2 query to CSV
Choose DB2 and logon.
Click “Export From Query” at task dialog.
Select CSV file type.
1. Enter DB2 query.
2. Set CSV file options.
3. Summary.
4. Export DB2 query results to CSV file.
After exporting, you can view output CSV files.
Export DB2 query to CSV in command line
Save “DB2 query to CSV” session, then you can:
- Export DB2 query to CSV in Windows command line.
- Export DB2 query to CSV in Linux command line.
- Export DB2 query to CSV in macOS command line.
Set scheduled tasks for exporting DB2 query to CSV
You can schedule and automate this converting task by:
1) Save session and create .bat file.