Absent Member.
Absent Member.

VStudio 2015 Vcobol 2.2 IDE Settings

Visual Cobol 2.3 for Visual Studio 2015
To set environment variables at runtime we have to use Properties/Application/Environment/IDE settings

How to use environment variable in IDE settings ?

I've checked this sample COBPATH=D:\ws_mycommon\cbl;%COBPATH%;C:\temp;$COBPATH;$(COBPATH);${COBPATH} in IDE setting

But at runtime I have : COBPATH=D:\ws_mycommon\cbl;%COBPATH%;C:\temp;$COBPATH;$(COBPATH);${COBPATH}

No variables expanded.
My subroutine was found only because I have hard a coded path (d:\ws_mycommon\cbl)

Another test At runtime
COBPATH178=D:\ws_mycommon\cbl;D:\ws_mycommon\cbl; // set before to start VStudio 2015


Tags (1)
1 Reply
Micro Focus Expert
Micro Focus Expert

There does appear to be a problem with environment variable expansion when set within the Properties-->Application-->Environment section.

I will create a bug report for that. If you would like to open a new support incident and reference my name in the description I will ensure that the bug report is added to your incident so that you will be notified when it is fixed.

As a workaround you could add an application.config file to the project and set the environment variables there. These appear to expand correctly. When setting them within application.config they will be set both when running the application within the IDE and outside of it.


The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.