Including data

Top  Previous  Next

GAMS may include external files that have been written by other programs providing they exist before the GAMS run instruction is issued, although a trick may be used to get around this as discussed below.  File inclusion may be done using the $include, $batinclude or $libinclude syntaxes as discussed in the Including External Files chapter.  There are also special provisions regarding inclusion of comma-delimited -CSV- files where such files may be incorporated by using the command $ondelim before beginning the entry and then $offdelim afterwards.  File inclusion is extensively discussed in the Including External Files chapter.