Previous Topic Next topic Print topic


Example CTF Configuration Files

Example ctf.cfg file 1

This configuration file traces the COBOL programs' loads, entries, exits and cancels, and creates a text file:

mftrace.emitter.textfile#Format = $(TIME) $(THREAD) $(COMPONENT) $(EVENT) $(LEVEL) :$(DATA)
mftrace.level.mf.rts              = info
mftrace.comp.mf.rts#pgm           = true
mftrace.comp.mf.rts#pgmload       = true
mftrace.comp.mf.rts#syspgm        = true

Example ctf.cfg file 2

This configuration file traces the COBOL programs' loads, entries, exits and cancels, and creates a text file:

mftrace.dest                      = binfile
mftrace.emitter.binfile#location  = c:\logs
mftrace.level.mf.rts              = info
mftrace.comp.mf.rts#pgm           = true
mftrace.comp.mf.rts#pgmload       = true
mftrace.comp.mf.rts#syspgm        = true

where:

  • c:\logs is the location where the trace files for the application is created.
  • binfile indicates that a binary trace file is to be generated

Example configuration file for Assembler

This configuration file traces Assembler programs, and creates a text file:

#
#  Demo CTF config file for use with demo CTF programs.
#

mftrace.dest=textfile

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

# Where do you want the logs to go?
mftrace.emitter.textfile#location = c:\logs

# Maximum file size in "k" bytes
mftrace.emitter.textfile#MaxFilesize = 6000

# Maximum number of log files to keep.
mftrace.emitter.textfile#MaxGeneration = 4

################################################
# CASSPOOL Tracing
################################################

mftrace.level.mf.asm             = debug

mftrace.comp.mf.asm#INS          = true
mftrace.comp.mf.asm#SVC          = true
mftrace.comp.mf.asm#BAL          = true

mftrace.comp.mf.asm#ABEND        = true
mftrace.comp.mf.asm#LOAD         = true
mftrace.comp.mf.asm#DELETE       = true
mftrace.comp.mf.asm#LINK         = true
mftrace.comp.mf.asm#GETMAIN      = true
mftrace.comp.mf.asm#FREEMAIN     = true
#mftrace.comp.mf.asm#REGS         = true

where:

  • INS - trace all instructions
  • SVC - trace all svc calls
  • BAL - trace all branch instructions
  • ABEND - trace abends
  • LOAD - trace all loads
  • DELETE - trace all delete calls
  • LINK - trace all link commands
  • GETMAIN - trace all memory allocation commands
  • FREEMAIN - trace all free memory commands

Example app.config file

(For .NET environment only.) This configuration file traces the COBOL programs' loads, entries, exits and cancels, and creates a text file:

<?xml version ="1.0"?>
  <configuration>
    <configSections>
      <sectionGroup name="MicroFocus.COBOL.Tracing">
        <section name="mftrace_config"
         type="MicroFocus.COBOL.Runtime.CdataSectionHandler,
         MicroFocus.COBOL.Runtime.Win32,Version=4.0.0.0,Culture=neutral,
         PublicKeyToken=0412c5e0b2aaa8f0" />
        </sectionGroup>
    </configSections>
    <MicroFocus.COBOL.Tracing>
      <mftrace_config>
        <![CDATA[>
mftrace.dest                           = binfile
mftrace.emitter.binfile#location       = c:\logs
mftrace.level.mf.rts                   = info
mftrace.comp.mf.rts#pgm                = true
mftrace.comp.mf.rts#pgmload            = true
mftrace.comp.mf.rts#syspgm             = true
        <]]>
      </mftrace_config>
    </MicroFocus.COBOL.Tracing>
  </configuration>
Previous Topic Next topic Print topic