Start of change

Running the command line processor

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

Before you begin

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

About this task

To run the command line processor:

Procedure

  1. Start the command line processor. See Command line processor start command.
  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 command line processor commands. The 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 command line processor options
    View or modify the format of the command line processor output
    Add explanatory information to the output
    Run z/OS UNIX System Services commands
    Display command line processor help
  4. Stop the command line processor by running the TERMINATE command.
End of change