Issuing commands from the z/OS console

You can issue commands to Db2 subsystem from the z/OS® console.

About this task

Begin general-use programming interface information.More than one Db2 subsystem can run under z/OS. From the console, you must add a prefix to a Db2 command with special characters that identify the subsystem that the command is directed to. The 1–8-character prefix is called the command prefix.

The command prefix of a Db2 subsystem is specified by the value of the COMMAND PREFIX field on the DSNTIPM installation panel. The default command prefix is a hyphen character concatenated with the subsystem name.

Procedure

To issue commands from a z/OS console:

Specify the command prefix for the Db2 subsystem before the command.
For example, the following command starts the Db2 subsystem that is uses -DSN1 for the command prefix:
-DSN1 START DB2
End general-use programming interface information.