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.
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;
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
@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.
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;
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/2023/06/19/ods-template-render.html
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.