Global Variables are declared in the block of code between the global and the input keywords, if there is an input section, and between the global and the var keywords, otherwise. The global section is optional.
// optional section
// declare some variables
// macro body
Variables are declared by simply listing them in the declaration block, the same way it is done in the var block.
• Do not use any separators such as commas to separate the variable.
• Note that the list of variable can extend onto as many lines as you wish.
The specificity of global variable is that they retain their value from one execution of a macro to another.