User Tools

Site Tools


gams:how_can_i_access_environment_variables_inside_gams

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
gams:how_can_i_access_environment_variables_inside_gams [2014/11/18 05:30]
admin
gams:how_can_i_access_environment_variables_inside_gams [2014/11/18 05:30] (current)
admin
Line 1: Line 1:
 ====== How can I access environment variables inside GAMS ====== ====== How can I access environment variables inside GAMS ======
  
-Starting with distribution 21.6 GAMS gives you direct access to environment variable at compile time via ''​%sysenv.varname%''​. For example ''​%sysenv.windir%''​ provides ​the directory of the Windows directory on your PC.+Starting with distribution 21.6 GAMS gives you direct access to environment variable at compile time via ''​%sysenv.varname%''​. For example ''​%sysenv.windir%''​ provides the Windows directory on your PC.
  
 In versions before 21.6, there is no direct way of accessing the environment variables inside GAMS, but we can create an include file on the fly that sets GAMS compile time strings which contain the settings of a system environment variable: In versions before 21.6, there is no direct way of accessing the environment variables inside GAMS, but we can create an include file on the fly that sets GAMS compile time strings which contain the settings of a system environment variable:
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/how_can_i_access_environment_variables_inside_gams.txt ยท Last modified: 2014/11/18 05:30 by admin