Macro

is a GenStat text structure containing a section of a GenStat program. The text must have an unsuffixed identifier. It can be substituted into the program, by giving its identifier, preceded by a contiguous pair of substitution symbols (##). The substitution takes place as soon as GenStat reads the pair of hashes. (However, GenStat also has the EXECUTE directive, which allows a text containing a list of statements to be executed for example within a loop or procedure.)