The
CANCEL command terminates the processing of the IDCAMS command stream, including any part of an IF-THEN-ELSE statement sequence or DO-END pair.
Parameters
The CANCEL command has no parameters.
Comments
This results int the stream being terminated with a return code in register 15 equal to the value of the highest condition code encountered before the CANCEL command was executed.