This compiler error will occur if the keyword var is found after the begin that marks the beginning of the instructions block in a macro.
For example:
begin
var
end
Make sure that you follow the order: global > input > var.
Topic 109503, last updated on 18-Apr-2020