Slide 43 of 68
Notes:
This code segment illustrates how to trap and handle errors without DCL’s intervention.
After the “statement” is executed, the value of $STATUS is saved, and the SEVERITY is derived from the saved STATUS.
Different actions are taken depending upon the value of the SEVERITY symbol.