<?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 How do I specify the image basename in ODS HTML? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-specify-the-image-basename-in-ODS-HTML/m-p/198351#M7390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this time I have the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a report via ODS HTML that includes a few png graphics created by proc gbarlin and proc gplot.&lt;/P&gt;&lt;P&gt;I need to specify a distinct basename for the graphics files, because a time series of the report will be written to the same directory, and at the moment the png's from each run are overwritten with the latest results.&lt;/P&gt;&lt;P&gt;Right now I get a gbarlin.png and several gplotX.png.&lt;/P&gt;&lt;P&gt;I want the files to be named report_name_X.png (report_name being the same as in the HTML file, which I already have extracted from the complete path name of the HTML) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know there must be an option to do that, but I somehow couldn't find it in the SAS doc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 07:26:47 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2015-04-17T07:26:47Z</dc:date>
    <item>
      <title>How do I specify the image basename in ODS HTML?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-specify-the-image-basename-in-ODS-HTML/m-p/198351#M7390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this time I have the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a report via ODS HTML that includes a few png graphics created by proc gbarlin and proc gplot.&lt;/P&gt;&lt;P&gt;I need to specify a distinct basename for the graphics files, because a time series of the report will be written to the same directory, and at the moment the png's from each run are overwritten with the latest results.&lt;/P&gt;&lt;P&gt;Right now I get a gbarlin.png and several gplotX.png.&lt;/P&gt;&lt;P&gt;I want the files to be named report_name_X.png (report_name being the same as in the HTML file, which I already have extracted from the complete path name of the HTML) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know there must be an option to do that, but I somehow couldn't find it in the SAS doc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 07:26:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-specify-the-image-basename-in-ODS-HTML/m-p/198351#M7390</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-04-17T07:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I specify the image basename in ODS HTML?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-specify-the-image-basename-in-ODS-HTML/m-p/198352#M7391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kurt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the NAME= option on the individual plot statement to name the file being created. See sample code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Consolas; font-size: 12pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;catalog&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;c&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=work.gseg &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;kill&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;quit&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;html&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"c:\temp\sample.html"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;gpath&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"c:\temp"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;url&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;none&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;gplot&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=sashelp.class ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;plot&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; age * weight / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"sample_"&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;quit&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;gbarline&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=sashelp.class;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;vbar&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; age / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"sample_"&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;plot&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;sumvar&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=height ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;quit&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;html&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;close&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 14:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-specify-the-image-basename-in-ODS-HTML/m-p/198352#M7391</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2015-04-17T14:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I specify the image basename in ODS HTML?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-specify-the-image-basename-in-ODS-HTML/m-p/198353#M7392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Just what I needed.&lt;/P&gt;&lt;P&gt;But: for the STAT graphics procedures, a base filename can be set with the ODS GRAPHICS statement.&lt;/P&gt;&lt;P&gt;I feel it would be nice to create a consistent way to set graphics parameters for all ODS output&lt;/P&gt;&lt;P&gt;- select the device (and proper filename extension) with the GOPTIONS statement&lt;/P&gt;&lt;P&gt;- then specify the base filename (along with gpath) in the ODS HTML statement (like gfilename="mygraphics_", which would then create mygraphics_1.&lt;EM&gt;ext&lt;/EM&gt;, mygraphics_2.&lt;EM&gt;ext&lt;/EM&gt;, and so on)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 06:03:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-specify-the-image-basename-in-ODS-HTML/m-p/198353#M7392</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-04-20T06:03:26Z</dc:date>
    </item>
  </channel>
</rss>

