This compiler error will occur if a global section is found after either the input or var sections of a macro.
input
global // should be before the input and var sections
var
begin
end
Make sure that you follow the order: global > input > var.
Topic 109509, last updated on 18-Apr-2020