ODBC tracing a windows application to an IBMi

In ODBC Administrator go to Tracing tab and click “Start Tracing Now”

Go to run cmd.exe and run cwbcotrc on /allusers

Run the ODBC application until your down with what you wanted to trace

Go to run cmd.exe and run cwbcotrc off

In ODBC Administrator go to Tracing tab and click “Stop Tracing Now”.

Do a search for SQL.Log on your c:/ drive

Go to run cmd.exe and run cwbsvget
Hit enter to open explorer to the cwbsvget.zip file

In that zip file there’s a lot of ODBC api calls to help you better understand whats going on.  I used notepad++’s find in files search to dig into it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s