Previous Topic Next topic Print topic


Turning on Tracing

Restriction: This topic applies only when a Database Connectors license has been installed via the Micro Focus License Management System.

You can set variables that allow tracing and help to resolve issues encountered in the initial Database Connectors configuration. You should turn tracing off after successful configuration of Database Connectors, because it can significantly impact performance.

Set a new variable:

Variable Value
MFTRACE_CONFIG     c:\DataConnectors\Test\config.ctf

In addition, you should create a configuration file for the tracing configuration. The following is a potential example of such a file c:\DataConnectors\Test\config.ctf :

mftrace.emitter.textfile#Format = $(TIME) $(THREAD) $(COMPONENT) $(EVENT) $(LEVEL) :$(DATA)

mftrace.level.mf.rts               = debug
mftrace.level                      = info
mftrace.comp.mf.rts#pgm            = true
mftrace.comp.mf.rts#pgmload        = true
mftrace.comp.mf.rts#syspgm         = true
mftrace.comp.mf.rts#eprintf        = 1
mftrace.emitter.TEXTFILE#location	 = C:\DataConnectors\Test\logs

You also need to create the directory C:\DataConnectors\Test\logs to receive your log files.

Note: The above directory location is just a sample. Your directory may be different. For more information about tracing, see the help for the Consolidated Tracing Facility (CTF) in the Micro Focus Visual COBOL documentation.

The important line in the CTF configuration file is the mftrace.comp.mf.rts#eprintf line, which is what causes the Database Connectors modules to emit trace information.

Previous Topic Next topic Print topic