<?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: SGplot overwrites instead of creating new pngs in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/559124#M18164</link>
    <description>&lt;P&gt;I added &lt;SPAN&gt;imagename="&amp;amp;modell_id.", which solved the issue for now. Will consider trying the html5 option as well, that sounds a lot simpler to manage&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2019 19:31:58 GMT</pubDate>
    <dc:creator>Ullsokk</dc:creator>
    <dc:date>2019-05-15T19:31:58Z</dc:date>
    <item>
      <title>SGplot overwrites instead of creating new pngs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/558869#M18150</link>
      <description>&lt;P&gt;I have a program loop that creates a html report. The program is called, and uses the input to create a new html report. But each time I create a new report, the png files in the graphs folder. About 20 graphs are created.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html file = "&amp;amp;modell_id..htm"
path = "...\Reports\TreeBoost"
gpath = "...\Reports\TreeBoost\graphs"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the folder, the files are named SGplot1-SGplot39. It skips every even number (2,4,6,8)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shouldnt the proc create new files ? And what is with the skipping of even numbers? I have tried changing the output folder name to a fresh folder, with the same results. I seems to be stuck in some index for naming the files, and starts over each time. In previous iterations of the code, It would create new files with higher numbers. I had previously deleted some old files, before this issue appeared.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 11:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/558869#M18150</guid>
      <dc:creator>Ullsokk</dc:creator>
      <dc:date>2019-05-15T11:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: SGplot overwrites instead of creating new pngs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/558890#M18151</link>
      <description>Hi:&lt;BR /&gt;  Are you resetting the index? &lt;BR /&gt;ods graphics / reset=index; OR&lt;BR /&gt;ods graphics / reset=all;&lt;BR /&gt;&lt;BR /&gt;Otherwise, without seeing what the rest of your code is, it's hard to comment. I've not had ODS GRAPHICS or SGPLOT only create odd numbered graphs. This might be a question for Tech Support.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 15 May 2019 12:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/558890#M18151</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-05-15T12:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: SGplot overwrites instead of creating new pngs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/558962#M18156</link>
      <description>&lt;P&gt;No, I have no RESET statement in my code, should I have? Or shouldn't I?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The entire code is very long and convoluted with %includes and macros. Besides, untill I deleted some old pngs, there was no issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 14:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/558962#M18156</guid>
      <dc:creator>Ullsokk</dc:creator>
      <dc:date>2019-05-15T14:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: SGplot overwrites instead of creating new pngs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/558985#M18157</link>
      <description>&lt;P&gt;The skip in the numbers is probably due to having two destinations open (maybe LISTING and HTML?). I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp; that there is probably a RESET occurring on an ODS GRAPHICS statement somewhere in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 14:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/558985#M18157</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-05-15T14:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: SGplot overwrites instead of creating new pngs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/558994#M18159</link>
      <description>&lt;P&gt;Triple checked, there is no RESET anywhere. Beside, as stated previously, before deleting old pngs in the folder, all worked fine. The overwriting happened after deleting old png, files the code is not altered.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 15:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/558994#M18159</guid>
      <dc:creator>Ullsokk</dc:creator>
      <dc:date>2019-05-15T15:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: SGplot overwrites instead of creating new pngs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/559003#M18160</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/68234"&gt;@Ullsokk&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Triple checked, there is no RESET anywhere. Beside, as stated previously, before deleting old pngs in the folder, all worked fine. The overwriting happened after deleting old png, files the code is not altered.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It really seems strange that after deleting the files it now starts overwriting actual files.&amp;nbsp; Do you perhaps mean that before it would make unique names for the files and now that the old files are gone it is re-using those names?&amp;nbsp; Not sure how it could know not to do that if the files are gone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it really did start overwriting existing files then perhaps by deleting the files you removed files that had permission settings that made it impossible for the SAS process to delete them.&amp;nbsp; But now the new files have been created with permission settings that let SAS delete them.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 15:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/559003#M18160</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-15T15:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: SGplot overwrites instead of creating new pngs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/559041#M18161</link>
      <description>&lt;P&gt;Yes, before, the numbers ran to about 400. Now it just starts at 1 (and skips every even number). I will have to try to reset somehow. Will try changing the paths again.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 16:09:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/559041#M18161</guid>
      <dc:creator>Ullsokk</dc:creator>
      <dc:date>2019-05-15T16:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: SGplot overwrites instead of creating new pngs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/559104#M18163</link>
      <description>If you do accidentally have multiple destinations open, then having &lt;BR /&gt;ODS _ALL_ CLOSE; &lt;BR /&gt;before you start running anything may close all the open (and possibly unnecessary) destinations.&lt;BR /&gt;&lt;BR /&gt;It is possible for ODS GRAPHICS to start overwriting image files. I believe there is a finite limit to the size of the name that can be assigned to the image file and when the limit is reached, the numbers will cycle around again. (Or at least they used to). I am in the habit of doing this:&lt;BR /&gt;ods graphics/reset=image;&lt;BR /&gt;&lt;BR /&gt;for my jobs if and when having certain names/numbers to my images is important. Other things you can do that bypass the numbering completely are to use a destination that does NOT create an external file: ODS PDF, ODS RTF and ODS HTML5 all will allow you to embed the image in the output file, so there is no external image file and thus, no numbering to worry about.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 15 May 2019 18:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/559104#M18163</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-05-15T18:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: SGplot overwrites instead of creating new pngs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/559124#M18164</link>
      <description>&lt;P&gt;I added &lt;SPAN&gt;imagename="&amp;amp;modell_id.", which solved the issue for now. Will consider trying the html5 option as well, that sounds a lot simpler to manage&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 19:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGplot-overwrites-instead-of-creating-new-pngs/m-p/559124#M18164</guid>
      <dc:creator>Ullsokk</dc:creator>
      <dc:date>2019-05-15T19:31:58Z</dc:date>
    </item>
  </channel>
</rss>

