The application configuration file has a .config extension, and you can specify the following in it:
You can add an application configuration file to your project as follows:
To set run-time configuration settings in the application configuration file:
By default, an application configuration file has a .config extension. If the file does not exist, add one for the project - see Related information.
You can add an application configuration file for all types of native projects except for Mainframe Subsystem Applications. This is because under Enterprise Server you configure the environment in a different way. You specify them either on the configuration pages of the server in ESCWA or from the command line environment if you start Enterprise Server from the command line.
If you run your application outside of the IDE, you need to set the environment variable COBCONFIG.BLOCK to the location of the application configuration file in order for the switches and environment variables set for the application to be applied.
When you build an executable within Visual Studio, the build process automatically copies the application configuration file into the output folder and renames it to <executable-base-name>.exe.mfgcf. The run-time system automatically applies the settings included in the file without the need to set the COBCONFIG.BLOCK environment variable. If COBCONFIG.BLOCK is already set, it takes precedence over the settings specified in the .exe.mfgcf file.