Salesforce

How to determine transaction scope at runtime

« Go Back

Information

 
TitleHow to determine transaction scope at runtime
URL NameP173786
Article Number000139815
EnvironmentProduct: OpenEdge
Version: 10.1B, 10.1C, 10.2x, 11.x, 12.x
OS: All supported platforms
Question/Problem Description
How to determine transaction scope at runtime
How to tell where a transaction started during runtime
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
OpenEdge 10.1B introduced a new log entry type named '4gltrans' which allows tracking when a transaction BEGINS, ENDS or is UNDONE.  This can be used like any other log entry type that is associated with the -clientlog startup parameter or through the LOG-MANAGER system handle.  Below is an example of implementing the 4gltrans log entry type both on the command-line (at startup) and through the LOG-MANAGER session handle:

Client Startup Parameters:
-clientlog <logfilename> -logentrytypes 4gltrans -logginglevel <n>

LOG-MANAGER SYSTEM HANDLE:
LOG-MANAGER:LOGFILE-NAME       = "<logfilename>".
LOG-MANAGER:LOG-ENTRY-TYPES = "4gltrans".
LOG-MANAGER:LOGGING-LEVEL     = <int>.

Logging can be recorded at two levels:
  • Level 2 - Logs when a transaction BEGINS and ENDS or when a transaction is UNDONE
  • Level 3 - Logs when a transaction OR subtransaction BEGINS, ENDS or is UNDONE

The logged data for these events is similar to the following:
BEGIN TRANS
BEGIN SUB-TRANS
UNDO SUB-TRANS
END TRANS
Workaround
Notes
References to Other Documentation:

Troubleshoot ABL Applications, Log Entry Types Detail, ABL transaction logging:
https://docs.progress.com/bundle/openedge-abl-troubleshoot-applications-122/page/ABL-transaction-logging.html

Troubleshoot ABL Applications, Logging in OpenEdge, Logging Infrastructure Overview, LOG-MANAGER system handle attributes and methods:
https://docs.progress.com/bundle/openedge-abl-troubleshoot-applications-122/page/LOG-MANAGER-system-handle-attributes-and-methods.html
 
Keyword Phrase
Last Modified Date3/23/2022 11:37 AM

Powered by