When a required option to configure the run-time behavior is not available in the IDE, use a .config file to set a run-time tunable in your .NET COBOL applications.
When you add the configuration to your .NET COBOL application, the Tunables section group is already declared. Add the section details, using the section details in bold below as an example.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="MicroFocus.COBOL.Application">
<section name="Switches" type="System.Configuration.NameValueSectionHandler" />
<section name="Environment" type="System.Configuration.NameValueSectionHandler" />
<sectionGroup name="Interop">
<section name="PreLoad" type="System.Configuration.NameValueSectionHandler" />
</sectionGroup>
</sectionGroup>
<sectionGroup name="MicroFocus.COBOL.Runtime">
<section name="Tunables" type="System.Configuration.NameValueSectionHandler" />
<section name="Switches" type="System.Configuration.NameValueSectionHandler" />
</sectionGroup>
</configSections>
<MicroFocus.COBOL.Application>
<Switches></Switches>
<Environment></Environment>
<Interop> <PreLoad> </PreLoad> </Interop>
</MicroFocus.COBOL.Application>
<MicroFocus.COBOL.Runtime>
<Tunables>
<add key="printer_redirection" value="true" />
<add key="printer_defaults" value="size=20;font=Courier New" />
</Tunables>
<Switches></Switches>
</MicroFocus.COBOL.Runtime>
</configuration>