tool for Using a code several times in a GAMS

Hi guys!

Is there a tool or command to use the piece of code Many times in GAMS?Instead of copying many times throughout the program?

Many Thanks!
Lucas

Lucas,

You can either put this into a macro (https://www.gams.com/latest/docs/UG_DollarControlOptions.html#UG_DollarControl_MacrosInGAMS) or in a (bat)include file (https://www.gams.com/latest/docs/UG_DollarControlOptions.html#DOLLARbatinclude).

-Michael