Hi There,
I don't have a DB2 installation to play with, but logparser will work with any ODBC compliant database, the last time I looked (years back), DB2 was definitely in this category and I used it actively as an OBDC datasource. So, if you do have an ODBC driver for DB2 on your machine and setup an ODBC DB2 datasource, you should be able to simply specify the output format as -o:SQL and give it your connection details.Look in the logparser.chm under the SQL output format for additional parameters and syntax as well as examples.
Here is an example of one of my queries that pumps data from a McAfee access log straight into an M$ Access database;
logparser file:accessprotectionlogdb.sql -i:tsv -headerrow:off -q -o:SQL -oConnString:"Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\projects\logparser\mcafee\fdaanalysis.mdb" -cleartable:on
Although your connection string syntax would need to be somewhat different and along these lines;
driver={IBM DB2 ODBC
DRIVER};Database=demodb;hostname=myservername;port=myPortNum;protocol=TCPIP;
uid=myusername; pwd=mypasswd
With this you should achieve the result you are seeking.
Good luck.
Cheers, Dave