Limited support BMC provides limited support for this version of the product. As a result, BMC no longer accepts comments in this space. If you encounter problems with the product version or the space, contact BMC Support.BMC recommends upgrading to the latest version of the product. To see documentation for that version, see ALTER and BMC AMI Change Manager for Db2 13.1.

-CMD (Db2 command)


The -CMD command issues commands to Db2.

Execution assumes that the text field of the statement is a Db2 command and inserts a leading dash (-), if not supplied. 

Example of -CMD command

-CMD  002500 STOP DATABASE(ASUETTA)

Note

The command text must be on the first line of the command.

The execution of certain utilities requires that a database or table space is in the stopped state. Execution uses this command to issue a Db2 STOP command on the object before continuing.

The Execution component then tests the status of the object to see whether the object has stopped. If the object has not stopped, Execution uses the value in the STOPWAIT parameter to determine how long to wait for the object to stop. If no STOPWAIT value exists, worklist processing stops immediately. the Execution component checks the object at two-minute intervals. The STOPWAIT value indicates the number of intervals. If the object does not stop, you can simply restart the execution job.

You can use -CMD to issue other Db2 commands and return the results to AEXPRINT. If any errors are found when a Db2 command is executing, the processing of the worklist stops.

Related topic


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*