<?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: Name Graphics seperated in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Name-Graphics-seperated/m-p/65805#M2240</link>
    <description>Hey Marie,&lt;BR /&gt;
&lt;BR /&gt;
Robert's suggestion of using IMAGENAME could still work for you. Here are a few ways you could make it work:&lt;BR /&gt;
&lt;BR /&gt;
1. Use the PLOTS option on PROC LIFETEST to select each plot and run the procedure twice, changing the name each time.&lt;BR /&gt;
2. Do #1 above using ODS SELECT if PLOTS does not give you the control you need.&lt;BR /&gt;
3. Run PROC LIFETEST once and capture all plots in an ODS DOCUMENT. Then, use PROC DOCUMENT to replay them individually, changing the name each time.&lt;BR /&gt;
&lt;BR /&gt;
Also note that the RESET=INDEX option on the ODS GRAPHICS may be useful here. This option will reset the index used on the end of the names. Be sure to use it before specifying IMAGENAME.&lt;BR /&gt;
&lt;BR /&gt;
Let me know if you have any questions about this approach.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan</description>
    <pubDate>Fri, 20 Aug 2010 17:48:09 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2010-08-20T17:48:09Z</dc:date>
    <item>
      <title>Name Graphics seperated</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Name-Graphics-seperated/m-p/65802#M2237</link>
      <description>Hey,&lt;BR /&gt;
&lt;BR /&gt;
i would like to rename the png-graphs from my proc lifetest (i have two different graphs: survival- and the Loglogs-graph). My output png-Graphs are named with 'LogNegLogSurvivalPlot.png' and 'SurvivalPlot.png'. i would like to add the variable name at the end so that i got 'LogNegLogSurvivalPlot_varname.png' and 'SurvivalPlot_varname.png'.&lt;BR /&gt;
&lt;BR /&gt;
Is that possible?&lt;BR /&gt;
&lt;BR /&gt;
thanks in advance. Marie</description>
      <pubDate>Fri, 20 Aug 2010 10:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Name-Graphics-seperated/m-p/65802#M2237</guid>
      <dc:creator>marieK</dc:creator>
      <dc:date>2010-08-20T10:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Name Graphics seperated</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Name-Graphics-seperated/m-p/65803#M2238</link>
      <description>Although "proc lifetest" generates graphs, it isn't per-say a SAS/Graph proc, and they do things a little differently ... so I'm not too familiar with it.&lt;BR /&gt;
&lt;BR /&gt;
But I do have 1 example, and it controls the name of the png files using "ods graphics" imagename= option, such as:&lt;BR /&gt;
&lt;BR /&gt;
ODS LISTING CLOSE;&lt;BR /&gt;
ODS HTML path=odsout body="&amp;amp;name..htm" style=Theme;&lt;BR /&gt;
ods graphics on / imagefmt=staticmap imagename="&amp;amp;name";&lt;BR /&gt;
&lt;BR /&gt;
(Rather than using the &amp;amp;name macro variable, you could probably put in whatever name you want &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Here's the full example, if you want to see it:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd20/life.htm" target="_blank"&gt;http://robslink.com/SAS/democd20/life.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://robslink.com/SAS/democd20/life_info.htm" target="_blank"&gt;http://robslink.com/SAS/democd20/life_info.htm&lt;/A&gt;</description>
      <pubDate>Fri, 20 Aug 2010 15:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Name-Graphics-seperated/m-p/65803#M2238</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-08-20T15:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Name Graphics seperated</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Name-Graphics-seperated/m-p/65804#M2239</link>
      <description>Hi Robert,&lt;BR /&gt;
&lt;BR /&gt;
thank you! i already found that imagename= option, but then both output graphs have these names (name.png and name1.png). &lt;BR /&gt;
'LogNegLogSurvivalPlot.png' and 'SurvivalPlot.png' are automatically given names from SAS, i just want to add my variable name at the ending so that i dont loose the overview with 20 variables and still know if its the LogNegLogSurvival Plot or the Survival Plot &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
So is the any chance to name them seperated?</description>
      <pubDate>Fri, 20 Aug 2010 17:05:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Name-Graphics-seperated/m-p/65804#M2239</guid>
      <dc:creator>marieK</dc:creator>
      <dc:date>2010-08-20T17:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Name Graphics seperated</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Name-Graphics-seperated/m-p/65805#M2240</link>
      <description>Hey Marie,&lt;BR /&gt;
&lt;BR /&gt;
Robert's suggestion of using IMAGENAME could still work for you. Here are a few ways you could make it work:&lt;BR /&gt;
&lt;BR /&gt;
1. Use the PLOTS option on PROC LIFETEST to select each plot and run the procedure twice, changing the name each time.&lt;BR /&gt;
2. Do #1 above using ODS SELECT if PLOTS does not give you the control you need.&lt;BR /&gt;
3. Run PROC LIFETEST once and capture all plots in an ODS DOCUMENT. Then, use PROC DOCUMENT to replay them individually, changing the name each time.&lt;BR /&gt;
&lt;BR /&gt;
Also note that the RESET=INDEX option on the ODS GRAPHICS may be useful here. This option will reset the index used on the end of the names. Be sure to use it before specifying IMAGENAME.&lt;BR /&gt;
&lt;BR /&gt;
Let me know if you have any questions about this approach.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan</description>
      <pubDate>Fri, 20 Aug 2010 17:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Name-Graphics-seperated/m-p/65805#M2240</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-08-20T17:48:09Z</dc:date>
    </item>
  </channel>
</rss>

