To specify environment variables in a run configuration

You can specify environment variables in a run configuration. These variables then apply only when running your application. You can either specify that the configuration uses the variables as set in the project's properties or specify other variables

To specify environment variables to use at run time:

  1. Right-click your project in COBOL Explorer and click Run As > Run Configurations.

    This opens the Run Configurations dialog box.

  2. Double-click COBOL Application.

    This creates a new run configuration for your application.

  3. In the Name field, type a name for the run configuration.
  4. Click the Environment tab.
  5. Set environment variables for the configuration as follows:
    • Click Add to specify a variable manually,

      If you specify a variable which is also specified in the project's properties, the value specified in the run configuration overrides the value specified in the project's properties.


    • Check Inherit values from the build environment of the associated project for the configuration to use the variables set at project level.

      The configuration inherits the variables specified at project level in the following order - from the build configuration settings, or if there are no variables set in the build configuration settings, then the ones specified in the project's settings.

  6. Click Apply.
  7. To run the configuration, click Run.