Stopping a specific job in execution *CANCEL,main

Function

Use the *CANCEL command to stop execution of a job that is currently active on a main. An SVC dump can also be requested. The *CANCEL command cannot be used to cancel a job that is part of a DJC network; for such jobs, use the *MODIFY,N command.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-+-*CANCEL-+--,--main--+-,--jobname-+--+---------+------------>
   '-*C------'           '-,--jobno---'  +-,--DUMP-+   
                                         '-,--D----'   

>--+---------+-------------------------------------------------><
   '-,--ARMR-'   

Parameters

main
Specifies the main name, as defined during JES3 initialization, to which the specified job is assigned.
jobname or jobno
Specifies the name of the job to be canceled (jobname) or the number of the job to be canceled (jobno).
DUMP or D
Specifies that an SVC dump is provided when the job is canceled. (A DD statement for the dump data set must be present in the JCL for the job.)
ARMR
Requests that automatic restart management automatically restart each specified job after it is canceled if that job is registered with automatic restart management. The ARMR keyword is ignored if the job is not executing or it is not registered with automatic restart management.
Note: The *MODIFY,J= command is the preferred way to cancel jobs that are in execution. The DUMP and ARMR options can also be specified on the *MODIFY,J= command.