Joshua Lee,
Here is a sample for exporting one table to IXF format using batch files. There is also an IF logic if something goes wrong. All messages are recorded into commands.log LOG file to see the results.
Contents of run.bat is:
Code:
db2cmd /i /c commands.bat
Contents of commands.bat is:
Code:
db2 connect to sample user db2adim using db2adin >> commands.log
if not %errorlevel% == 0 goto error
db2 export to c:\table.ixf of ixf select * from db2admin.table >> commands.log
if not %errorlevel% == 0 goto error
db2 connect reset >> commands.log
if not %errorlevel% == 0 goto error
goto end
:error
echo "Error" >> commands.log
exit
:end
echo "OK" >> commands.log
exit
You will need to modify commands.bat file according to your needs. Then execute run.bat file to let commands.bat be executed.
Hope this helps,
Grofaty