7.1. Cancelling a task

CANCEL can be performed as follows:

1.
Issue the CANCEL jobname command from the master console, where jobname is the looping task.
2.
If the looping task is a TSO user, then issue CANCEL U=tsouser.
3.
Optionally, you might want to take a dump during the cancel. This is achieved by adding the DUMP option to the CANCEL command. For example:
CANCEL jobname,DUMP
It is recommended that a separate DUMP command be issued, and after this has been successfully processed, then CANCEL the task. This will dump according to the JCL SYSABEND, SYSUDUMP, or SYSMDUMP DD statements specified in the JCL.

Get z/OS Diagnostic Data Collection and Analysis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.