Kbase P73285: Does using the NO-ERROR phrase on the RUN statement suppress automatic UNDO behavior?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  03/02/2009 |
|
Status: Verified
GOAL:
Does using the NO-ERROR phrase on the RUN statement suppress automatic UNDO behavior?
FACT(s) (Environment):
All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge 10.x
OpenEdge Category: Language (4GL/ABL)
FIX:
Using the NO-ERROR phrase of the RUN statement does indeed suppress the automatic UNDO behavior of Progress when the RUN statement fails due to an error condition which can be suppressed (some errors are considered to be "hard" errors and cannot be suppressed because it is not possible to continue program execution after receiving the error). Since the NO-ERROR phrase explicitly tells us to suppress the error (and to place the error information into the ERROR-STATUS handle) you must manually analyze the contents of the ERROR-STATUS handle and invoke the UNDO statement if undo behavior is needed.