Previous Topic Next topic Print topic


To set run-time environment variables and switches for native COBOL applications

Note: This information applies to native code only.
  1. In Solution Explorer, open the application configuration file for your project. By default, it has the file extension .config.

    If the file does not exist, create one.

  2. On the Environment tab, enter a variable name and its value in the Name and Value fields, and click Set.
  3. On the COBOL Switches tab, check the switches you require.
  4. Click OK.
Note: If you run your application outside of the Visual Studio 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.
Previous Topic Next topic Print topic