Consultor Eletrônico



Kbase P124258: Warning 214 cannot be suppressed.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/2/2008
Status: Unverified

FACT(s) (Environment):

All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge 10.x

SYMPTOM(s):

Warning 214 cannot be suppressed.

** WARNING--TRANSACTION keyword given within actual transaction level. (214)

It is not possible to prevent warning 214 even with NO-ERROR.

SESSION:SUPPRESS-WARNINGS does not prevent error 214 from being displayed.

CAUSE:

Warning 214 is not an error or a real warning. It is a compiler generated message that includes the WARNING keyword.

FIX:

It is not possible to prevent error 214 from being displayed. Although the error can be ignored, it is possible to suppress this error by isolating the DO TRANSACTION statements inside internal procedures that execute ONLY if there is no active transaction. For example, the internal procedure Alpha is run conditional to absence of an ongoing transaction:
FIND FIRST customer EXCLUSIVE-LOCK.
IF NOT TRANSACTION THEN RUN Alpha.
PROCEDURE Alpha:
DO TRANSACTION:
END.
END PROCEDURE.