Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2003
    Posts
    77

    Unanswered: DB2 CLP commands execution

    I want to know the correct way to execute DB2 CLP commands (like "list tablespaces" ) through java code. I'm using DB2v7.2 on windows 2000 server. I guess it can not be done in the same way as we execute the SQL statements.
    Appreciate your responses.

    Thanks,
    -Preeti

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1

    Re: DB2 CLP commands execution

    Originally posted by preetim
    I want to know the correct way to execute DB2 CLP commands (like "list tablespaces" ) through java code. I'm using DB2v7.2 on windows 2000 server. I guess it can not be done in the same way as we execute the SQL statements.
    Appreciate your responses.

    Thanks,
    -Preeti
    java.lang.Runtime.getRuntime().exec("db2 list tablespaces");

  3. #3
    Join Date
    Jun 2003
    Posts
    77

    Re: DB2 CLP commands execution

    Thanks a lot for helping me out. I'll apply it soon.


    Originally posted by n_i
    java.lang.Runtime.getRuntime().exec("db2 list tablespaces");

Posting Permissions

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