Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004
    Posts
    0

    Unanswered: Executing DB2 SQL Scripts from a AIX Korn Shell

    Does anyone know or have a sample script to execute a DB2 SQL statement from a korn shell ?

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    There's a program called Command Line Processor that processes commands (and SQL statements too). You can run it from an interactive shell or put into a shell script, like this:
    Code:
    db2 "select current timestamp from sysibm.sysdummy1"

Posting Permissions

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