Results 1 to 3 of 3

Thread: Db2cmd

  1. #1
    Join Date
    Jun 2003
    Posts
    2

    Question Unanswered: Db2cmd

    I have written a java program to connect and run DB2 load from the command window, using the runtime.exec option. But it gives me a Process.exitValue of 8.

    When I run the same command(db2 -tvf filename)directly on the command window it tells me that the environment is not initialized. I need to run the program without opening the DB2 command window. How do I achieve this?

    I would appreciate if you could help me out with this problem.

    Thank you

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650

    Re: Db2cmd

    http://dbforums.com/showthread.php?t...ghlight=db2cmd

    Does this help ?

    Cheers

    Sathyaram

    Originally posted by Pallavi
    I have written a java program to connect and run DB2 load from the command window, using the runtime.exec option. But it gives me a Process.exitValue of 8.

    When I run the same command(db2 -tvf filename)directly on the command window it tells me that the environment is not initialized. I need to run the program without opening the DB2 command window. How do I achieve this?

    I would appreciate if you could help me out with this problem.

    Thank you

  3. #3
    Join Date
    Jun 2003
    Posts
    2

    Thank You

    Hi,

    thank you very much for the help. I have tried it out and the program is working well. I was tied up so could not reply earlier, sorry.

    Pallavi

Posting Permissions

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