$Sysinclude

Top  Previous  Next

One can also pass parameters using the Sysinclude syntax that only really differs from Batinclude in where the file comes from.  Namely, if an incomplete path is given, the file name is completed using the system include directory.

The basic syntax for the command is

 

$Sysinclude externalfilename argument1 argument2 

Notes:

By default, the system include directory is set to the GAMS system directory.
On a PC running version 22.7 the default system include directory location this would be

 c:\program files\gams22.7\

 

This is useful when one develops a general utility that is to be used in many settings across many directories.