BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
wlierman
Lapis Lazuli | Level 10

I have a general question regarding tables that appear in the Results window.

 

Can these be moved to another medium where they can be used and resized or re-positioned.

 

I have some frequency tables of race_ethnicity that I want to send to another person (not sure if they have SAS or not).  I right-clicked in the Results window and there was an option to export to excel.

 

When I tried that my session 'froze' there was no response to to back out of the window or get back to the program code.  I had IT kill the session.

 

Are there any straightforward ways to use the output from the Results pane?

 

Thank you.

 

wklierman

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
I usually pipe the results directly to my destination of choice instead, results window/copy/paste is the 'old' way 😉

Add an ODS wrapper around the start and end of code you'd like to display in the output. You can use ODS SELECT/EXCLUDE if you want to include/exclude certain tables/outputs. I'm assuming you're aware of how to pipe these tables to data sets as well, that could also be manipulated and then either exported, combined or saved for later use.

ods excel file='/.....' style=meadow;
proc freq data=sashelp.class;
run;
ods excel close;

View solution in original post

5 REPLIES 5
Reeza
Super User
I usually pipe the results directly to my destination of choice instead, results window/copy/paste is the 'old' way 😉

Add an ODS wrapper around the start and end of code you'd like to display in the output. You can use ODS SELECT/EXCLUDE if you want to include/exclude certain tables/outputs. I'm assuming you're aware of how to pipe these tables to data sets as well, that could also be manipulated and then either exported, combined or saved for later use.

ods excel file='/.....' style=meadow;
proc freq data=sashelp.class;
run;
ods excel close;
wlierman
Lapis Lazuli | Level 10
I am not familiar with the piping method.  That sounds very useful being able to  move the data to
a data set.  How does that work?

Thanks.
wklierman
SASKiwi
PROC Star

Are you using Enterprise Guide by any chance? The method you are using is really only designed for small tables, for example a few thousand rows. @Reeza 's method is better for large tables.

wlierman
Lapis Lazuli | Level 10
I am using a window version of SAS.  A couple of the tables are large since they have maybe 15-20 R/E designations.


SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 5 replies
  • 687 views
  • 0 likes
  • 3 in conversation