Use the CANCEL command to identify the commands for cancelation. The only commands that can be canceled are those commands that have not started. Identification of the commands to cancel can be specified by the DFSMShsm request number, user ID, or data set name. Use the QUERY command to find the request numbers, user IDs, or data set names. Use the QUERY ACTIVE command to determine which DFSMShsm requests are currently being processed. Use the QUERY ACTIVE(TCBADDRESS) to obtain the Task Control Block addresses of active DFSMShsm data movement tasks.
A CANCEL command with the USERID or DATASETNAME parameters cancels all existing nonexecuting requests having the specified user ID or data set name.
CANCEL REQUEST(num)
If you issue the CANCEL REQUEST(num) command for an active FRRECOV DSNAME request that is processing more than one single data set, then all queued data set requests for that command fail and no additional requests are generated. All data set recovery MWEs generated by a single FRRECOV DSNAME command have the same request number. Hence, the CANCEL REQUEST(num) command cancels all queued data set recovery MWEs that originate from the same FRRECOV command.
If you issue the CANCEL REQUEST(num) command with a request number of the Fast Replication dumps, all dumps in progress are canceled, any queued DUMP MWEs fail, and no additional requests are generated. When a Fast Replication DUMP command is processed, individual volume DUMP MWEs with the same request number are generated for all volumes in each storage group defined to the copy pool.
CANCEL USERID(userid)
CANCEL DATASETNAME(dsn)
CANCEL SASINDEX(sasindex)
sasindex is
an integer value between 1 and 64 received from the QUERY ACTIVE(TCBADDRESS)
command. The CANCEL command may be controlled by RACF® FACILITY class.CANCEL TCBADDRESS(X'tcbaddress')
tcbaddress is an 8 digit
value received from the QUERY ACTIVE(TCBADDRESS) command. Volume level
activity generally goes to the next data set after a data set task
is canceled, so to also end the volume task you should issue the appropriate
HOLD command before canceling the data movement task.'TCB' is the first tcbaddress to cancel. If the function does not end, then a 'TCB2' address is given, and the tcbaddress in 'TCB2' can then be used. If the function still does not end and a 'TCB3' address is given, then the tcbaddress in 'TCB3' can be used. If the TCB value is '****?***', then no TCB was found.
When canceling a hung journal back task, allow any active CDS backup tasks to run to completion. If a CDS backup task is also hung, cancel it before canceling the hung journal backup task. The CANCEL command may be controlled by RACF FACILITY class.
The CANCEL and QUERY commands cannot be canceled.