The STEP statement is used to define a checkpoint for error handling in a sequence of SDF-U statements. This statement is valid only in procedures and batch runs.
STEP |
The STEP statement has no operands.
If SDF-U detects a syntax error or a serious logical error, the following steps are initiated:
an error message is output
the running SDF-U statement is aborted
the subsequent statements are skipped until STEP or END is reached.
If SDF-U reaches an END statement first, it generates an abnormal program termination (TERM UNIT=STEP,MODE=ABNORMAL) and activates the spin-off mechanism. If SDF-U reaches a STEP statement first, it continues with the statement following the STEP. If the error has no influence on correct execution of the running job, the SDF-U user must preempt abnormal program termination by inserting a STEP.
SDF-U corrects minor logical errors automatically and a warning message is output. The spin-off mechanism is not activated in such cases.