BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
hjjijkkl
Pyrite | Level 9

How do I stop frqplot output from getting saved to my output folder automatically. 

 

proc freq data=new3 order=data;
table Week / NOCUM plots=freqplot;
run;

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ
Hi:
Well, I'd tell you to use
ODS GRAPHICS OFF;

but it looks like you're explicitly asking for the FREQPLOT in your code. What do you want to do with the plot? Is there an alternate place you want to save it? If so, then you've got to tell us what destination(s) you have turned on. By default, ODS GRAPHICS writes to the PATH= or GPATH= location for your open destination(s). Without showing any ODS statements that implies you are using the default destination. The default destination can be different depending on how you are using SAS. So what do you want to have happen to the FREQPLOT?

Cynthia

View solution in original post

8 REPLIES 8
Cynthia_sas
SAS Super FREQ
Hi:
Well, I'd tell you to use
ODS GRAPHICS OFF;

but it looks like you're explicitly asking for the FREQPLOT in your code. What do you want to do with the plot? Is there an alternate place you want to save it? If so, then you've got to tell us what destination(s) you have turned on. By default, ODS GRAPHICS writes to the PATH= or GPATH= location for your open destination(s). Without showing any ODS statements that implies you are using the default destination. The default destination can be different depending on how you are using SAS. So what do you want to have happen to the FREQPLOT?

Cynthia
hjjijkkl
Pyrite | Level 9
Yes, So, I am using ODS Word for my output report and I have the graph printed in the word document but, at the same time the freqplot.png is getting saved automatically which I dont want to happen. Is there another code that I can use to have frequency table with freq graph?
hjjijkkl
Pyrite | Level 9
I do have a default folder in C:\ , and i have used ODS GRAPHICS OFF but, it didnt drop the freqplot.png from saving automatically to the default folder.
Reeza
Super User
Do you happen to have other destinations open or just your WORD/RTF destination?
hjjijkkl
Pyrite | Level 9
I only have ods Word file "filepath"
ods word close;
Reeza
Super User
There's usually the default ODS though, either listing or HTML depending on your set up. If you haven't turned those off then SAS is still generating output to your Results window which is why you're still getting files.
hjjijkkl
Pyrite | Level 9

Thank you all ODS GRAPHICS OFF final worked!

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 8 replies
  • 1178 views
  • 0 likes
  • 3 in conversation