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

Hello,

I am working on a batch file to run many SAS programs overnight.  I have the -nologo and -noprint options in my batch file to stop sas from creating the log and lst file, but how or what option do I use to keep SAS from outputting chart and graphs (example:  IChart.png)?  I have an ODS file that contains all the desired output I want in the specific location written in the SAS code.

Thank  you,

Jeff

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

ods _all_ close;

will suppress output

but why are you creating a chart if you don't want it in the first place?

--
Paige Miller

View solution in original post

3 REPLIES 3
PaigeMiller
Diamond | Level 26

ods _all_ close;

will suppress output

but why are you creating a chart if you don't want it in the first place?

--
Paige Miller
Jolly
Calcite | Level 5

I do want the charts.  What I want is inside my SAS program I have a location specificed with ODS to write an RTF file with all my charts in one single file.  But, when I run this program in a batch file to run overnight, it additionally generates all the .png files for each of the charts.  I dont want to come into work every morning and have 2000 individual .png files of charts on my desktop.

Jolly
Calcite | Level 5

And also, huge thank you.  That did take care of the problem.  I have no .png files, but my updated rtf file is in the correct location how I want it.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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