This example demonstrates the use of the BATCH/CANCEL statement to cancel three batch jobs.
$$
$$ Declarations
$$
NUMBER/NUM(3)
$$
$$ Batch Statement
$$
NUM=BATCH/CANCEL,1031,1032,1033
The array NUM will be assigned the number of the batch job being cancelled, 1031, 1032 and 1033 respectively.