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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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