Results 1 to 6 of 6

Thread: Call API

  1. #1
    Join Date
    Aug 2008
    Posts
    76

    Unanswered: Call API

    Hi,

    Can someone help me how to call an API. For Example I would like to run
    db2CfgGet API to get the instance config params.

    Thanks in advance.

    Thanks,
    Panditt

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650
    have a look at some samples in the sqllib/samples/c directory.
    You have to do a C program to use these APIs.
    Visit the new-look IDUG Website , register to gain access to the excellent content.

  3. #3
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    There is also a PDF manual called Administrative API Reference.
    M. A. Feldman
    IBM Certified DBA on DB2 for Linux, UNIX, and Windows
    IBM Certified DBA on DB2 for z/OS and OS/390

  4. #4
    Join Date
    Aug 2008
    Posts
    76
    Thanks Sathya and Marcus.

    Thanks,
    Panditt

  5. #5
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    If you want to use the APIs from a client via SQL only, you could wrap them into a stored procedure and CALL the stored procedure.
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

  6. #6
    Join Date
    Aug 2008
    Posts
    76
    Thanks Stolze. I will try it and will let you know.

    Thanks,
    Panditt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •