<?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: How to maintain Indexing of .png graph files between SAS Interactive and SAS EG in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455416#M15636</link>
    <description>&lt;P&gt;One more question: is the SAS session for EG running locally on the machine with EG, or is SAS running it remotely? After re-reading your last reply, I'm wondering if EG is physically renaming the files we create to have this different index when the results are returned. Due to the hour, I cannot talk with them right now; but I'll try to find out more information.&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, 18 Apr 2018 22:06:36 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2018-04-18T22:06:36Z</dc:date>
    <item>
      <title>How to maintain Indexing of .png graph files between SAS Interactive and SAS EG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455403#M15630</link>
      <description>&lt;P&gt;I want to be able to create ODS graphs written to the ODS HTML destination&amp;nbsp;and have the following happen:&lt;/P&gt;&lt;P&gt;1) The .png file is written to a different folder than the .html file&lt;/P&gt;&lt;P&gt;2) the graphs are named in a way that allows the user to easily identify which .png goes with which .html file&lt;/P&gt;&lt;P&gt;3) each time the program is run the .png and .html files are replaced&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code accomplishes this fairly well --&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;%let outpath=Y:\Sandbox\Testing\Tools;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ods graphics on / reset=index imagename="testing" ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ods html path="&amp;amp;outpath." gpath="&amp;amp;outpath.\png" (url="&amp;amp;outpath.\png\") file="testing.html";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;proc sgplot data=sashelp.class noautolegend; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;scatter x=age y=height / markerattrs=(symbol=squarefilled color=green);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ods html close;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXCEPT&lt;/STRONG&gt; we have programmers who work&amp;nbsp;in &lt;EM&gt;SAS 9.4 for Windows&lt;/EM&gt; and other programmers who work in &lt;EM&gt;SAS EG Version 7.13&lt;/EM&gt; and when this exact code is run from SAS EG the .png files created are incremented one higher than the corresponding .png files when run from SAS 9.4.&amp;nbsp; It appears that SAS 9.4 starts indexing at 0, but SAS EG Version 7.13 starts indexing at 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there a way to control the indexing start point in either system?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 21:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455403#M15630</guid>
      <dc:creator>ECProthena</dc:creator>
      <dc:date>2018-04-18T21:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to maintain Indexing of .png graph files between SAS Interactive and SAS EG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455407#M15632</link>
      <description>&lt;P&gt;The issue is probably that EG is already opening an ODS destination for you, so&amp;nbsp;two graphs are created instead of one. Your code opens the second destination, so your files have an index of "1". Add this at the beginning your program and see if it works for you in EG:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods _all_ close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 21:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455407#M15632</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-04-18T21:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to maintain Indexing of .png graph files between SAS Interactive and SAS EG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455409#M15633</link>
      <description>&lt;P&gt;I tried using ODS _ALL_ CLOSE and it did not solve the problem. With ODS _ALL_ CLOSE both EG and interactive create one file -- EG names it with 1 and interactive has no extension (0).&amp;nbsp; Without the ODS _ALL_ CLOSE,&amp;nbsp;EG and Interactive both&amp;nbsp;create&amp;nbsp;two files - EG names them with 1 and 2 and Interactive names them with no extension (0) and 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 21:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455409#M15633</guid>
      <dc:creator>ECProthena</dc:creator>
      <dc:date>2018-04-18T21:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to maintain Indexing of .png graph files between SAS Interactive and SAS EG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455413#M15634</link>
      <description>&lt;P&gt;EG actually does not have the ability to increment that number. The only way this can be happening, in your scenario, is that somehow another destination is still open, and was started before your ODS HTML statement. Is there any other open destinations in your program? Perhaps an ODS LISTING?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 21:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455413#M15634</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-04-18T21:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to maintain Indexing of .png graph files between SAS Interactive and SAS EG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455414#M15635</link>
      <description>&lt;P&gt;One other thing to check: I believe there is a way to see the full log (including the generated code from EG). Take a look at the log and see if EG is starting an ODS destination that is not getting shut down before running PROC SGPLOT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 21:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455414#M15635</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-04-18T21:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to maintain Indexing of .png graph files between SAS Interactive and SAS EG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455416#M15636</link>
      <description>&lt;P&gt;One more question: is the SAS session for EG running locally on the machine with EG, or is SAS running it remotely? After re-reading your last reply, I'm wondering if EG is physically renaming the files we create to have this different index when the results are returned. Due to the hour, I cannot talk with them right now; but I'll try to find out more information.&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, 18 Apr 2018 22:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455416#M15636</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-04-18T22:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to maintain Indexing of .png graph files between SAS Interactive and SAS EG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455417#M15637</link>
      <description>&lt;P&gt;I used a fresh session with no autoexec etc, set the ODS CLOSE _ALL_; And in SAS EG still get that one file with the number 1 higher than what it is when I run the same code in SAS Interactive.&amp;nbsp; If there is another destination open, I don't know how to track it down?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 22:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455417#M15637</guid>
      <dc:creator>ECProthena</dc:creator>
      <dc:date>2018-04-18T22:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to maintain Indexing of .png graph files between SAS Interactive and SAS EG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455418#M15638</link>
      <description>&lt;P&gt;Both our SAS EG and our interactive SAS run remotely on a Windows server....we connect to the same server for both, but I'm not sure what that means on the backend...&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 22:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455418#M15638</guid>
      <dc:creator>ECProthena</dc:creator>
      <dc:date>2018-04-18T22:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to maintain Indexing of .png graph files between SAS Interactive and SAS EG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455457#M15641</link>
      <description>&lt;P&gt;If you are generating multiple graph files as a result of BY processing, you can do the following in the latest SAS release:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class; by sex; run;
ods graphics / reset=index imagename="aTest#BYVAL(sex)";
proc sgplot data=class;
by sex;
scatter x=height y=weight;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and get files aTestF.png and aTestM.png created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 03:32:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-maintain-Indexing-of-png-graph-files-between-SAS/m-p/455457#M15641</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-04-19T03:32:38Z</dc:date>
    </item>
  </channel>
</rss>

