Syntax and parameters of the DEFAULTCMD statement

The DEFAULTCMD statement specifies the default command that will be issued if a CMD action has been specified for the address space. The DEFAULTCMD statement has the following syntax form.

DEFAULTCMD 'cmdchr[ASIDchar],cmdtext'

The DEFAULTCMD statement applies to the previously specified msgtype. Zero or more DEFAULTCMD statements should follow each msgtype statement.

cmdchr
A single character that can be used later in the cmdtext to indicate where the jobname should be substituted. Only a single substitution is performed.
ASIDchar
An optional single character that can be used later in the cmdtext to indicate where an address space identifier (ASID) should be substituted. ASIDchar must be different than the cmdchr. Only a single substitution is performed. The ASID is provided in printable hexadecimal, suitable for use in the CANCEL command.
cmdtext
Any valid z/OS® or subsystem command. The maximum length is limited to 56 characters.
Note:
  1. The DEFAULTCMD specification does not apply to msgtype SPECIFIC.
  2. Your security product might prevent you from issuing the command that you have specified on the DEFAULTCMD statement. Because the command is issued from the address space that is causing the flood, the address space causing the flood must be authorized to issue the command. In terms of RACF®, this means that the address space must have sufficient access authority. For example, to issue the MVS™ CANCEL command, UPDATE access authority is required.
Syntax rules:
Example:
DEFAULTCMD '#,CANCEL #' z/OS cancel job
DEFAULTCMD '#,*CANCEL,SY1,#' JES3 cancel job
DEFAULTCMD '#,SEND ''# is issuing a lot of messages'',BRDCST'
DEFAULTCMD '&%,CANCEL &,A=%'