BookmarkSubscribeRSS Feed
PruCelt68
Calcite | Level 5

When I run SAS stat procedures (logistic, mixed, etc.) it saves a .PNG in one of the last folders I was in. I get many of these files saved all over the place in my folders. I want them to stop saving everywhere, but they seem to be like gremlins, taking over my computer.

5 REPLIES 5
PaigeMiller
Diamond | Level 26

I think Gremlins would be offended!

 

Just turn ODS GRAPHICS off at the start of your program if you don't want the graphics.

 

ods graphics off;
--
Paige Miller
Tom
Super User Tom
Super User

Or if you do want them make sure to say WHERE you want them.

https://documentation.sas.com/doc/en/statug/15.2/statug_odsgraph_sect041.htm

 

PruCelt68
Calcite | Level 5

@PaigeMiller wrote:

I think Gremlins would be offended!

 

Just turn ODS GRAPHICS off at the start of your program if you don't want the graphics.

 

ods graphics off;

I wouldn't want them all off, I just want the ones which are being created automatically, without me wanting them or not, to stop showing up in my various permanent folders.

ChrisHemedinger
Community Manager

And just to chime in with another option, you can use ODS HTML5 and SVG to embed the scalable graphics in your HTML output (if that's what you're using), and skip creating external graphics files.

 

ods html5 options(svg_mode="inline");
ods graphics /outputfmt=svg;
SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
Ksharp
Super User

If you don't need these output, you could just close them of all.

ods _all_ close;

If you need to display some output, use ODS SELECT.

https://blogs.sas.com/content/iml/2018/11/19/select-ods-tables-wildcards-regular-expressions-sas.htm...

https://blogs.sas.com/content/iml/2023/06/19/ods-template-render.html

 

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
  • 216 views
  • 1 like
  • 5 in conversation