data want;
set have(obs=10);
run;
/* or also */
proc print data=have(obs=10);
run;
data want;
set have(obs=10);
run;
/* or also */
proc print data=have(obs=10);
run;
why is this not printing out? syntax?
%macro yatesGunstAnova(
...
%macro save_dataset(df5);
proc datasets library=work nolist; save df5;
quit;
%mend;
%save_dataset(df5);
%mend yatesGunstAnova;
%macro yatesGunstAnova2;
data dsn2; set work.df5;
proc print data=dsn2; run; quit;
%mend;
%yatesGunstAnova2;
@marymarion Please don't add new questions to already resolved discussions but create a new discussion. This will also give you more people looking into your new questions.
For what you are asking here what people likely will tell you:
First write some code without macro that's working. Only then use macro language to make it dynamic. For the code you've shared: I can't see the reason why you are even using macros because there is nothing dynamic. ....any further comment only if you create a new question for this.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.