<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Nuisance .png files with ODS RTF output in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Nuisance-png-files-with-ODS-RTF-output/m-p/113954#M10132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Interesting thing about your code...why do you have GOPTIONS before your ODS RTF step? ODS GRAPHICS will completely ignore your GOPTIONS. I wonder whether you are getting the stray PNG file because the LISTING destination or the HTML destination is accidentally left on and/or your GOPTIONS device=PNG is confusing things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; That Tech Support note refers ONLY to the GOPTIONS that you need with classic SAS/GRAPH but when you are using ODS GRAPHICS ON with PROC UNIVARIATE, you are NOT using "classic" SAS/GRAPH. I am not exactly how things work in batch mode, but if you are using EG, for example, you might want to turn off any automatic ODS files that EG might be creating by preceding your code with&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ODS _ALL_ CLOSE;&lt;/STRONG&gt;&amp;nbsp; too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you absolutely need to change the image format for RTF, then the appropriate option is:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods graphics / imagename='koala' imagefmt=png; &lt;/STRONG&gt;&amp;nbsp; &amp;lt;--- NOT GOPTIONS!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2012 18:46:10 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-05-14T18:46:10Z</dc:date>
    <item>
      <title>Nuisance .png files with ODS RTF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Nuisance-png-files-with-ODS-RTF-output/m-p/113951#M10129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run ODS graphics in batch, I get these nuisance .png files that in the directory where I am running the program.&amp;nbsp; For instance, with the attached sample, a file called histogram.png will be created in addition to being placed into the ODS RTF destination.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the recommended graphics options from &lt;A href="http://support.sas.com/kb/32/474.html" title="http://support.sas.com/kb/32/474.html"&gt;http://support.sas.com/kb/32/474.html&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With one file it is a minor nuisance, but I run some reports that generate 00's of them.&amp;nbsp; Is there an option to keep them from appearing or maybe a way to systematically redirect them to the bit-bucket?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Nuisance-png-files-with-ODS-RTF-output/m-p/113951#M10129</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-05-14T16:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nuisance .png files with ODS RTF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Nuisance-png-files-with-ODS-RTF-output/m-p/113952#M10130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that annoying as well. They seem to use the "active" folder which can get set from the "open program" dialog box.&lt;/P&gt;&lt;P&gt;The code below helps IF I remember to run it as needed (after using the open program or save program dialog). The PNGs end up in the WORK folder.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%let workpath=%sysfunc(pathname(work));&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/*WORKPATH HAS THE LOCATION, now to find a way to put PNG there&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is supposed to change the current folder*/&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;x "cd &amp;amp;workpath";&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Nuisance-png-files-with-ODS-RTF-output/m-p/113952#M10130</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-05-14T16:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Nuisance .png files with ODS RTF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Nuisance-png-files-with-ODS-RTF-output/m-p/113953#M10131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried that.&amp;nbsp; Unfortunately, it put my .rtf&amp;nbsp; file there too (and then deleted it at the end of the batch run).&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 17:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Nuisance-png-files-with-ODS-RTF-output/m-p/113953#M10131</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-05-14T17:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nuisance .png files with ODS RTF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Nuisance-png-files-with-ODS-RTF-output/m-p/113954#M10132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Interesting thing about your code...why do you have GOPTIONS before your ODS RTF step? ODS GRAPHICS will completely ignore your GOPTIONS. I wonder whether you are getting the stray PNG file because the LISTING destination or the HTML destination is accidentally left on and/or your GOPTIONS device=PNG is confusing things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; That Tech Support note refers ONLY to the GOPTIONS that you need with classic SAS/GRAPH but when you are using ODS GRAPHICS ON with PROC UNIVARIATE, you are NOT using "classic" SAS/GRAPH. I am not exactly how things work in batch mode, but if you are using EG, for example, you might want to turn off any automatic ODS files that EG might be creating by preceding your code with&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ODS _ALL_ CLOSE;&lt;/STRONG&gt;&amp;nbsp; too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you absolutely need to change the image format for RTF, then the appropriate option is:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods graphics / imagename='koala' imagefmt=png; &lt;/STRONG&gt;&amp;nbsp; &amp;lt;--- NOT GOPTIONS!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 18:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Nuisance-png-files-with-ODS-RTF-output/m-p/113954#M10132</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-05-14T18:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Nuisance .png files with ODS RTF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Nuisance-png-files-with-ODS-RTF-output/m-p/113955#M10133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually provide explicit paths for any of my ODS RTF output so I hadn't noticed that behavior. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 22:03:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Nuisance-png-files-with-ODS-RTF-output/m-p/113955#M10133</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-05-14T22:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nuisance .png files with ODS RTF output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Nuisance-png-files-with-ODS-RTF-output/m-p/113956#M10134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp; It appears that the file was for the listing destination.&amp;nbsp; I added an&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and removed the GOPTIONS and it now works cleanly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've picked up most of my ODS knowledge from looking at EGuide logs.&amp;nbsp; EGuide doesn't have this problem and doesn't use the listing destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 00:27:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Nuisance-png-files-with-ODS-RTF-output/m-p/113956#M10134</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-05-15T00:27:17Z</dc:date>
    </item>
  </channel>
</rss>

