LINGO Command Scripts

A LINGO command script is any text file containing a series of LINGO commands. In addition to understanding the syntax of LINGO models, using command scripts requires some understanding of LINGO's command language (covered in Command-line Commands). You can think of these commands as a macro language that allows you to automate the running of frequently used commands and/or models.

To run a command script in Windows versions of LINGO, use the File|Take Commands command. In other versions of LINGO, use the TAKE command. In both cases, you will be prompted for the name of a file that contains your command script. Once you have input the file name, LINGO will begin to execute the commands in this file. Execution will continue until either a QUIT command is encountered, causing LINGO to terminate, or an end-of-file is encountered, causing LINGO to return to normal input mode.