AWK Scripts for Loading Text Files into GAMS
Uwe A. Schneider
last modified May 2012
Other GAMS interfaces from/to: ShadeMap
Other GAMS interfaces from/to: ShadeMap Gnuplot Stata Powerpoint Html Awk
Many data are stored in text files but are not compatible with GAMS. Such data include geographic data, various model output, and statistics. AWK is a text processing program which is integrated in GAMS. It can help you to convert text file based information if this information is organized in a systematic way. As long as you can perceive a rule on which to process your data automatically, there is a high chance that you can formulate this rule as an awk script. The following tasks can easily be implemented in awk:
Awk scripting for GAMS through GAMSIDE usually involves four different files:
For help on awk scripts click here.