BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
1 ACCEPTED SOLUTION

Accepted Solutions
Patrick
Opal | Level 21
data want;
  set have(obs=10);
run;

/* or also */
proc print data=have(obs=10);
run;

 

View solution in original post

3 REPLIES 3
Patrick
Opal | Level 21
data want;
  set have(obs=10);
run;

/* or also */
proc print data=have(obs=10);
run;

 

marymarion
Obsidian | Level 7
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;
Patrick
Opal | Level 21

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

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

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.


Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 689 views
  • 0 likes
  • 2 in conversation