$Libinclude

Top  Previous  Next

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

The basic syntax for the command is

 

$Libinclude externalfilename argument1 argument2 …

Notes:

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

 c:\program files\gams22.7\inclib\

 

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