05-02-2012 05:51 AM
we can create macro variables in many ways.
and if you use %do statements in with in the macro,
for example %macro test;
%do i=1 %to 10;
in that example "i" also become a local macro variable.
and I don't think that we can create macro variables directly by using %local and %global statements.
generally we use % local and %global statement before %let statement to specify weather the macro variable become local or global.
05-02-2012 07:53 AM
That's not entirely correct. %local and %global create macro variables with null values. Even without assigning a value to them with %let, you can reference them without error.