DB2ToTxt - DB2 export Csv (Txt) file »
We can run from command line or create a batch file(replace the "username", "password", "server" with your own database user info. The lines wrap in this page, but in the file is 1 line):
"C:\Program files\DB2ToTxt\DB2ToTxt" username=root password=123456 server=SAMPLE session="E:\testcase\bio.uld" logfile="E:\testcase\bio.log"

"C:\Program files\DB2ToTxt\DB2ToTxt" username=root password=123456 server=SAMPLE workspace="E:\testcase\export_test.mtw" logfile="E:\testcase\export_test.log"

username: Your DB2 system username. password: Your DB2 system password. server: Your DB2 server name. hostname: Your DB2 hostname. port: Your DB2 port (default 50000). session: The session file name, to create a seesion file, please see this page: Save/Load session. workplace: The workspace file name. logfile: The log file name.
You may need to run a batch file at a specific time and/or at a certain time every day. Below is additional information about how to do this.
With the introduction of Microsoft Windows 98, Microsoft has included Scheduled Tasks, a software program designed to run any program, including batch files, at any time or any schedule you desire. To run Scheduled Tasks, follow the below steps.
- Click Start
- Click Programs
- Click Accessories, System Tools, and then Scheduled Tasks.
Once open, you'll be able to create your own custom task by clicking Add Scheduled Task, which will start you through the wizard, prompting you with what program you wish to execute, how often you wish to run it (daily, weekly, monthly, one time only, when my computer starts, and when I log on), the time you wish to run, and how often each day to run.
DB2ToTxt is a data conversion tool that helps you export DB2 data to file (csv, txt, sql, xml, html, Excel).
30-day free trial
US$59.95