Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2003
    Location
    UK
    Posts
    7

    Exclamation Unanswered: Windows Command via Script Centre

    Hi All.

    Can someone please let me know if its possible to run a Windows \ DOS Command via a batch job created in the Script Centre?

    any examples would be usefull.

    Many Thanks

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650
    possible ... Select the 'OS Command' option when creating the script in script centre
    Visit the new-look IDUG Website , register to gain access to the excellent content.

  3. #3
    Join Date
    Oct 2004
    Location
    DELHI INDIA
    Posts
    338
    Enclosed example can help you in this regard:


    db2 connect to %1 user %2 using %3
    db2 set schema STAGING

    echo ==== CREATING TABLES ====
    cd DDL
    db2 -stvf create_table.ddl
    echo Exit code from CREATING TABLES: %ERRORLEVEL%

    echo ==== CREATING EVERYTHING ELSE ====
    db2 -stvf everything_else.ddl
    echo Exit code from CREATING EVERYTHING ELSE: %ERRORLEVEL%

    cd ..


    Jayanta Datta
    Xansa India

Posting Permissions

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