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.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.