Syntax

The complete syntax for the CMDS command is:
 
CMDS {ABEND,CMD=cccccccc,ID=nnnn[,CLASS=classname][,JOB=jobname]}

     {DISPLAY|D[,CLASS=classname][,CMD=cccccccc][,ID=nnnn][,JOB=jobname]}

     {DUMP}

     {FORCE,CMD=cccccccc,ID=nnnn[,CLASS=classname][,JOB=jobname]}

     {REMOVE|R[,CLASS=classname][,CMD=cccccccc][,ID=nnnn][,JOB=jobname]}

     {SHOW|S[,CLASS=classname][,CMD=cccccccc][,ID=nnnn][,JOB=jobname]}  
Note:
  1. The ABEND and FORCE parameters require that you specify the CMD= and ID= subparameters.
  2. The REMOVE parameter requires that you specify at least one subparameter.
  3. You may specify the optional subparameters of the default (DISPLAY) or specified parameter in any order.
  4. WARNING: Never use the FORCE parameter without understanding that:
    • After issuing CMDS FORCE, you might have to re-IPL the system or depending on the command being terminated, a sysplex-wide IPL may be required.
    • You should ensure that the target command is hung and not just needing a long time to complete.
  5. If you need a dump, you may issue a CMDS DUMP command before you issue CMDS ABEND or CMDS FORCE. Note that CMDS DUMP will dump only Master's and Console's address space. If you believe the target command may have functions running in another address space, use the DUMP command instead, specifying the address space along with Master's and Console's.