Controlling Db2 stand-alone utilities

You use JCL to run the Db2 stand-alone utilities, most of which can run while Db2 is running.

Procedure

Begin general-use programming interface information.To run a Db2 stand-alone utility:

  1. Stop the table spaces and index spaces that are the object of the utility job. If you do not do this, you might receive inconsistent output.
  2. If the utility is one that requires that Db2 be stopped during utility execution, use this command:
    -STOP DB2 MODE (FORCE)
  3. If the utility is one that requires that Db2 be running during utility execution and if Db2 is not running, issue this command:
    -START DB2
  4. Create a JCL job that includes the utility control statement with code specific data set names and associated parameters for your utility.
    End general-use programming interface information.