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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: