Hi,
Not too sure whether this is the right place to look for help.
I am newbie to SAS.
Basically, I have written a few macros in SAS which I would like to activate when different conditons are met.
For example.
(Toggle Plain Text)
Data _NULL_
Do i=0 to 10
Select (i)
When (0)%Macro1(var1);
when(2) % macro2(var2);
….
otherwise
end
end
Data _NULL_
Do i=0 to 10
Select (i)
When (0)%Macro1(var1);
when(2) % macro2(var2);
….
otherwise
end
end
However, I found that I cannot do that i.e. select different macros when different conditions are met. Anybody can suggest how I could achieve the same functionality?
(P.S if possible, give code fragments as i am really very new to SAS)
Also, is it possible to concatenate 2 macro strings.
i.e. % Let macro1=ABC;
%Let macro2=DEF;
I would like to have
%Let macro 3= ABCDEF; (but using macro1 and 2 since the values may change.)
How can I do this??
Thanks.