Release suspended batch task
| Component: | BS2000 | 
| Functional area: | Job processing | 
| Domain: | SYSTEM-TUNING | 
| Privileges: | TSOS | 
| Routing code: | J | 
Function
A batch task previously placed on hold with the HOLD-TASK command is released with RESUME-TASK.
Only after this release can the job be canceled, if required, with the CANCEL-JOB command. In the case of a task which is waiting for an operator response, if a RESUME-TASK command is issued after a HOLD-TASK command, the following message will appear:
EXC0712 TASK NOT PENDED BY HOLD-TASK COMMAND. /RESUME-TASK REJECTED 
Not until the operator response is entered will the task be put on hold. A second RESUME-TASK command will be required to cancel the hold state for the task.
Format
| RESUME-TASK | |||||||||||||||||||||||||
| 
 | |||||||||||||||||||||||||
Operands
JOB-IDENTIFICATION =
The batch job for which the wait state is to be canceled can be identified either by its task sequence number (TSN) or by a declared monitoring job variable (MONJV).
JOB-IDENTIFICATION = *TSN(...)
Preset value: the job is identified by its TSN.
TSN = <alphanum-name 1..4>
TSN of the batch job to be resumed.
JOB-IDENTIFICATION = *MONJV(...)
Preset value: the job is identified by its monitoring job variable.
MONJV = <filename 1..54 without-gen-ver>
Specifies the monitoring job variable of the batch task for which the wait state is to be canceled.
Return codes
| (SC2) | SC1 | Maincode | Meaning | 
|---|---|---|---|
| 0 | CMD0001 | No error | |
| 12 | 64 | EXC0711 | Specified task sequence number (TSN) not found | 
| 12 | 64 | EXC0712 | Task is not on hold | 
| 12 | 64 | EXC0715 | Command is not allowed for this task type |