Hi,
New to macro programming - I am confused when to use macro functions as the code seems to work well without macro function when used with a macro variable. The code below as an example works without using %upcase as well.
%let mod=mdx;
data cars; set sashelp.cars; if strip(model)=upcase("&mod"); keep model ; run;
Similarly,
%let greet = Hello my name is Sam; %let hel= %scan(&greet,1, " "); ----> works
%put &hel;
data hello; greet = %scan("&greet",1, " "); --->but this doesn't. Rather it works with scan and not %scan run;
... View more