How to execute DB2 C sample file (dblognoconn) on Windows XP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • db2readlog
    New Member
    • Jun 2008
    • 3

    How to execute DB2 C sample file (dblognoconn) on Windows XP

    Hi,

    I want to execute the C sample file called "dblognocon n" provided with DB2 version 8.1.14.292 FixPak 14 on Windows XP.

    Can anyone help me with the steps involved so that I can get the correct output? I want to read the DB2 transaction logs via this.

    Its urgent and very critical. Please reply soon.


    Thanks for any help.
  • db2forluw
    New Member
    • Jan 2008
    • 2

    #2
    Hi,

    in sqllib\samples\ c directory there is one script called bldapp used for compile and to link the code.

    Note :- I am assuming you are using Visual Studio... so first open the visual studio command prompt. From there write db2cmd (db2 command prompt will open) then go to the sqllib\samples\ c directory.

    So suppose you want to run dblognoconn sample then try following steps:-

    c:\sqllib\sampl es\c>bldapp dblognoconn ----------> it will compile the code and will create exe.
    c:\sqllib\sampl es\c> dblognoconn ----> execute exe.

    Comment

    Working...