DEFINE VARIABLE i AS INTEGER NO-UNDO.
FIND FIRST Customer WHERE CustNum = 1000 NO-ERROR. IF ERROR-STATUS:ERROR THEN DO i = 1 TO ERROR-STATUS:NUM-MESSAGES: IF ERROR-STATUS:GET-NUMBER( i ) = 565 THEN RUN FailedFindRecovery.p. IF i = ERROR-STATUS:NUM-MESSAGES THEN RUN GeneralErrorRecovery.p. END. |