Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2005
    Posts
    16

    Question Unanswered: using runstats in db2batch

    Hi All,
    I am using runstats command from db2batch .
    I am getting the following error.

    SQL0104N An unexpected token "db2 runstats on table db2admi" was found
    following "BEGIN-OF-STATEMENT". Expected tokens may include:
    "<collect_stats_start>". SQLSTATE=42601

    When I run the same runstats command in the command editor I don't get errors.
    Has any one encountered same problem?

    Thanks and regards
    AD

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    db2batch is for running SQL statements; RUNSTATS is not a SQL statement.

Posting Permissions

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