<?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 to specify FileName.PNG for ODS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-specify-FileName-PNG-for-ODS/m-p/553447#M9384</link>
    <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code successfully saves the plot&amp;nbsp;'gplot##.png' in the desired location on my desktop.&lt;/P&gt;&lt;P&gt;I would like to name the plot something other than 'gplot##.png'.&amp;nbsp; In the following attempt, I tried to name the png image, 'graph.png'.&lt;/P&gt;&lt;P&gt;What I would like to know is how to specify the name of the 'png' image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename odsout "C:\Users\jawhitmi\Desktop\";
ods _all_ close;

goptions reset=all border device=png;

proc format;
	value mmm_fmt
	1='Al '
	2='B  '
	3='Ca '
	4='Cl '
	5='Fe '
	6='Li '
	7='Mg '
	8='NO2'
	9='NO3'
	10='Na '
	11='S  '
	12='Si '
	13='TOC'
	14='Ti '
	15='Zn '
	16='Zr '
	;
run;

ods html path=odsout body="graph.png" style=statistical;

title1 "Maximum Ratio of Run 3 over Law 6";

symbol1 interpol=join value=dot;

proc gplot data=work.calc_ratios;
	plot MaxRatio*Compound / hminor=0;
run;

symbol1 interpol=join  width=2 value=circle c=indigo;

legend1 label=none value=(tick=1 "Ug/Ml");

format compound $3.;

quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you for your time and feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jane&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2019 21:59:46 GMT</pubDate>
    <dc:creator>jawhitmire</dc:creator>
    <dc:date>2019-04-23T21:59:46Z</dc:date>
    <item>
      <title>How to specify FileName.PNG for ODS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-specify-FileName-PNG-for-ODS/m-p/553447#M9384</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code successfully saves the plot&amp;nbsp;'gplot##.png' in the desired location on my desktop.&lt;/P&gt;&lt;P&gt;I would like to name the plot something other than 'gplot##.png'.&amp;nbsp; In the following attempt, I tried to name the png image, 'graph.png'.&lt;/P&gt;&lt;P&gt;What I would like to know is how to specify the name of the 'png' image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename odsout "C:\Users\jawhitmi\Desktop\";
ods _all_ close;

goptions reset=all border device=png;

proc format;
	value mmm_fmt
	1='Al '
	2='B  '
	3='Ca '
	4='Cl '
	5='Fe '
	6='Li '
	7='Mg '
	8='NO2'
	9='NO3'
	10='Na '
	11='S  '
	12='Si '
	13='TOC'
	14='Ti '
	15='Zn '
	16='Zr '
	;
run;

ods html path=odsout body="graph.png" style=statistical;

title1 "Maximum Ratio of Run 3 over Law 6";

symbol1 interpol=join value=dot;

proc gplot data=work.calc_ratios;
	plot MaxRatio*Compound / hminor=0;
run;

symbol1 interpol=join  width=2 value=circle c=indigo;

legend1 label=none value=(tick=1 "Ug/Ml");

format compound $3.;

quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you for your time and feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jane&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 21:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-specify-FileName-PNG-for-ODS/m-p/553447#M9384</guid>
      <dc:creator>jawhitmire</dc:creator>
      <dc:date>2019-04-23T21:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify FileName.PNG for ODS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-specify-FileName-PNG-for-ODS/m-p/553450#M9386</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;BODY= refers to the name of the HTML file that will CONTAIN the image file created by PROC GPLOT. So you will NOT be changing the name of the PNG file with this method. Consider this example:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use_name_option.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28950i86262789406AF73B/image-size/large?v=v2&amp;amp;px=999" role="button" title="use_name_option.png" alt="use_name_option.png" /&gt;&lt;/span&gt;&lt;BR /&gt;The NAME= option inside PROC GPLOT is how you change the name of the PNG file that is created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 22:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-specify-FileName-PNG-for-ODS/m-p/553450#M9386</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-04-23T22:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify FileName.PNG for ODS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-specify-FileName-PNG-for-ODS/m-p/553454#M9387</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the assistance with SAS ODS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have an example to share?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jane&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 22:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-specify-FileName-PNG-for-ODS/m-p/553454#M9387</guid>
      <dc:creator>jawhitmire</dc:creator>
      <dc:date>2019-04-23T22:21:45Z</dc:date>
    </item>
  </channel>
</rss>

