-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
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