Running the Db2 command line processor

If you use z/OS® UNIX System Services, you can run the Db2 command line processor.

Before you begin

Before you can use the Db2 command line processor, your z/OS UNIX System Services session needs to be set up to locate the Db2 command line processor code and the properties file that contains Db2 command line processor start-up options. See Setting up the Db2 command line processor for details.

About this task

To run the Db2 command line processor:

Procedure

  1. Start the Db2 command line processor.
  2. Connect to a Db2 server using the CONNECT command.

    You can disconnect from one server and connect to another server during the command line processor session by using the DISCONNECT command and another CONNECT command.

  3. Run Db2 command line processor commands.
    The Db2 command line processor lets you perform the following types of tasks:
    Task Command
    Perform COMMIT, ROLLBACK, change isolation level, or DESCRIBE operations
    Execute other SQL statements, including CALL
    Perform XML schema repository operations
    Bind packages
    List the tables on the Db2 server
    View or modify Db2 command line processor options
    View or modify the format of the Db2 command line processor output
    Add explanatory information to the output
    Run z/OS UNIX System Services commands
    Display Db2 command line processor help
  4. Stop the Db2 command line processor by running the TERMINATE command.