CANCEL command operands

(jobname (jobid))
specifies the names of the jobs that you want to cancel. The job names must consist of your user identification plus 1 to 8 alphanumeric characters. However, if your installation has replaced the default IBM-supplied CANCEL exit, you may be allowed to specify different job names.
The optional job ID subfield can consist of 1 to 8 alphanumeric characters. The first character must be alphabetic or one of the special characters (#, $, or @). The job ID is a unique job identifier assigned by the job entry subsystem (JES) at the time the job was submitted to the batch system. Currently the only valid forms of job identifiers (jobid) assigned by JES are:
  • JOBnnnnn or Jnnnnnnn - Jobs
  • STCnnnnn or Snnnnnnn - Started Tasks
  • TSUnnnnn or Tnnnnnnn - TSO Users
The job ID is needed if you have submitted two jobs with the same name.
Note the following:
  • When you specify a list of several job names, you must separate the job names with standard delimiters and you must enclose the entire list within parentheses.
  • Jobs controlled by the subsystems are considered started tasks and cannot be canceled by the CANCEL command.
  • If your installation uses security labels and security checking, each job has a security label associated with it. You may submit a job at a greater security label than you are currently logged on with provided that you are defined to that security label. However, to cancel a job, the security label you are logged on with must be equal to or greater than the security label that the job was submitted at.
NOPURGE | PURGE
NOPURGE
specifies jobs are to be canceled if they are in execution, but output generated by the jobs remains available. If the jobs have executed, the output remains available.
PURGE
specifies the job and its output (on the output queue) are to be purged from the system.