This command cancels a running job.
zos cancel [jobid] [--reason=]
The user must enter the jobid that he or she is interested in. The default for this argument is the last job run.
Specifies the reason to log for this action. The user must enter a value with this option.
Specifies the terminal width for formatting. The user must enter a value with this option.
Displays a help message for this operation.
Turns on debug output during this operation.
Turns on verbose output during this operation.
Force TLS/SSL encryption [on|off]. The user must enter a value with this option.
Port number for TLS/SSL connections. The user must enter a value with this option.
Force acceptance of new TLS server certificates.
Force acceptance of all TLS server certificates.
To cancel the current job for the login user, use the following command:
zos cancel
To cancel the named job instance <jobid> for the login user, use the following command:
zos cancel <jobid>