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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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