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!
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;
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;
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!
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.