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
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.