How to suppress chart output when using a batch file to run SAS?

Accepted Solution Solved
Reply
Contributor
Posts: 45
Accepted Solution

How to suppress chart output when using a batch file to run SAS?

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


Accepted Solutions
Solution
‎09-25-2014 09:42 AM
Trusted Advisor
Posts: 1,496

Re: How to suppress chart output when using a batch file to run SAS?

ods _all_ close;

will suppress output

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

View solution in original post


All Replies
Solution
‎09-25-2014 09:42 AM
Trusted Advisor
Posts: 1,496

Re: How to suppress chart output when using a batch file to run SAS?

ods _all_ close;

will suppress output

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

Contributor
Posts: 45

Re: How to suppress chart output when using a batch file to run SAS?

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.

Contributor
Posts: 45

Re: How to suppress chart output when using a batch file to run SAS?

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.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 251 views
  • 0 likes
  • 2 in conversation