Hi, As a newbie, I just came across "macro variables". They are said to be local, but then I must misunderstand something. Below is an example that seems to generate a result that gives me the impression that a macro variable (in this case i) is not local within a macro, what do I miss? %macro macro_B();
%put macro_B ... ;
%do i = 1 %to 5;
%put macro_B - looping [&=i];
%end;
%put macro_B - loop completed [&=i];
%mend;
%macro macro_A();
%put macro_A ... ;
%do i = 1 %to 3;
%put macro_A - looping [&=i];
%macro_B();
%end;
%put macro_A - loop completed [&=i];
%mend;
%macro_A(); Yields the following output macro_A ...
macro_A - looping [I=1]
macro_B ...
macro_B - looping [I=1]
macro_B - looping [I=2]
macro_B - looping [I=3]
macro_B - looping [I=4]
macro_B - looping [I=5]
macro_B - loop completed [I=6]
macro_A - loop completed [I=7] Happy for a quick explanation. //C
... View more