Hello
What is the difference between way1 and way2?
In way1 written %macro RRR(N=);
In way2 written %macro RRR(N);
Is it positional parameters in both ways?
What is thwa way to see in the log the actual code that the processor see?
/****Way1***/
%macro RRR(N=);
%if &N. > 10 %then %do;
proc means data = sashelp.class MEAN;
var age;
run;
%end;
%else %put No calculation;
%mend;
%RRR(N=19);
/****Way2***/
%macro RRR(N);
%if &N. > 10 %then %do;
proc means data = sashelp.class MEAN;
var age;
run;
%end;
%else %put No calculation;
%mend;
%RRR(N=19);
Is it positional parameters in both ways?
positional parameter means there's no = sign
What is thwa way to see in the log the actual code that the processor see?
See option MPRINT
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.