BookmarkSubscribeRSS Feed
e1rik2
Calcite | Level 5

Hello SAS users:

I wrote a program that produces a graph. But I don’t want my graph to output to both my results window and a separate report. Is there a way I can have this graph output only to my ODS destination?

Thanks!

2 REPLIES 2
Quentin
Super User

You can use:

ODS Listing Close;

to turn off sending output to results.  For example:

 

ods listing close;
ods pdf file="...";
proc print;
run;
ods pdf close;
ods listing;
BASUG is hosting free webinars Next up: Mark Keintz presenting History Carried Forward, Future Carried Back: Mixing Time Series of Differing Frequencies on May 8. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
Ksharp
Super User
ods _all_ close;
ods noresults;
ods rtf file='c:\temp\temp.rtf';
proc sgplot data=sashelp.class;
scatter x=weight y=height/datalabel=name group=sex;
run;
ods rtf close;

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