<?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: Problem with ODS from SGRENDER in a macro in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-ODS-from-SGRENDER-in-a-macro/m-p/252746#M9145</link>
    <description>&lt;P&gt;Use double quotes if you want to substitute the value of a macro variable into a string. For example&lt;/P&gt;
&lt;P&gt;IMAGENAME = "&amp;amp;fname. Recurrence Plot";&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2016 16:23:24 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-02-26T16:23:24Z</dc:date>
    <item>
      <title>Problem with ODS from SGRENDER in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-ODS-from-SGRENDER-in-a-macro/m-p/252744#M9144</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attempting to write a macro that gathers data from a text file, graphs it, then saves the graph. My problem is in the saving graph bit. Here the relevant code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%MACRO rpz2 (fname=, radius=);
	%let fname_len = %length(&amp;amp;fname);
	%let subjname = %substr(&amp;amp;fname, 1, &amp;amp;fname_len-3);
	%let rad_rr = 20;
	%let rad_z2 = 25;

	DATA &amp;amp;fname;
		INFILE "C:\Users\Benjamin\Data\HeatMappers\Txts\&amp;amp;fname..txt"
			DELIMITER='    ' ;
		INPUT X Y Recurrence;
	RUN;

	DATA &amp;amp;fname;
		set &amp;amp;fname;
		if recurrence &amp;gt; &amp;amp;radius THEN delete;
	RUN;

	ods printer printer=tiff;
	ODS GRAPHICS / IMAGENAME = '&amp;amp;fname. Recurrence Plot';
		proc sgrender data=&amp;amp;fname template=PlotRadius&amp;amp;radius; 
		dynamic _X='X' _Y='Y' _Z='Recurrence' _T="Plot - &amp;amp;fname";
	   	TITLE "Plot";
	RUN;
	ods printer close;

%MEND rpz2 ;&lt;/PRE&gt;&lt;P&gt;I keep getting a message that reads "WARNING: The IMAGENAME option or the output name contains invalid characters. _fname Recurrence&amp;nbsp;Plot will be used as the image name prefix." Then it saves a file in the right directory, but the problem is that the title of the file is "_fname Plot".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 16:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-ODS-from-SGRENDER-in-a-macro/m-p/252744#M9144</guid>
      <dc:creator>benbuck</dc:creator>
      <dc:date>2016-02-26T16:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ODS from SGRENDER in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-ODS-from-SGRENDER-in-a-macro/m-p/252746#M9145</link>
      <description>&lt;P&gt;Use double quotes if you want to substitute the value of a macro variable into a string. For example&lt;/P&gt;
&lt;P&gt;IMAGENAME = "&amp;amp;fname. Recurrence Plot";&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 16:23:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-ODS-from-SGRENDER-in-a-macro/m-p/252746#M9145</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-02-26T16:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ODS from SGRENDER in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-ODS-from-SGRENDER-in-a-macro/m-p/252747#M9146</link>
      <description>Thanks! I forgot that rule.</description>
      <pubDate>Fri, 26 Feb 2016 16:25:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-ODS-from-SGRENDER-in-a-macro/m-p/252747#M9146</guid>
      <dc:creator>benbuck</dc:creator>
      <dc:date>2016-02-26T16:25:30Z</dc:date>
    </item>
  </channel>
</rss>

