<?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 sgplot, how to add macro variable in footnote? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-how-to-add-macro-variable-in-footnote/m-p/509394#M17332</link>
    <description>&lt;P&gt;in sgplot, how to add macro variable in footnote?&lt;/P&gt;&lt;P&gt;I add macro variables in title and footnote, the title shows but footnote doesn't. I don't know why. anyone can help?&lt;/P&gt;&lt;P&gt;thanks a lot. below is my code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24548iC8C4550593B17F16/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.jpg" alt="test.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
by sex;
run;

data c1;
  set class;
   if sex='M' then do; lloq=5.1; unit='mg/kg';sexn=1; end;
   if sex='F' then do; lloq=3; unit='mg/kg'; sexn=2; end;


run;



%MACRO ODS;
ods rtf file="c:\mean_plot.rtf"     STYLE=Styles.Stat     ;
%MEND;
%ODS;

%MACRO c1(ALLTEST,LL);

      TITLE H=1 font= 'Courier New' c=black "mean figure  of &amp;amp;ALLTEST";
 footnote H=1 j=l font= 'Courier New' c=black 'Notes: dotted line = LLOQ &amp;amp;LL';

      proc sgplot data=c1;
	      
             where 11&amp;lt;=age&amp;lt;=15;
            vline age/response=WEIGHT group=sexn grouporder=ascending stat=mean limitstat=stderr name="a"  markers;
			refline &amp;amp;LL/axis=y label="LLOQ=&amp;amp;ll" LABELLOC= INSIDE lineattrs= (pattern=2);
            xaxis type= linear GRID values=( 0 to 21 by 3);
            yaxis type=log  GRID values=( 1 10 50 100 200) display=all    logstyle=logexpand minor ;
            keylegend 'a'/noborder;
		
      run;

%MEND;
%c1(ALLTEST=test project,LL=20);
ods rtf CLOSE;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 01 Nov 2018 01:35:30 GMT</pubDate>
    <dc:creator>magicdj</dc:creator>
    <dc:date>2018-11-01T01:35:30Z</dc:date>
    <item>
      <title>sgplot, how to add macro variable in footnote?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-how-to-add-macro-variable-in-footnote/m-p/509394#M17332</link>
      <description>&lt;P&gt;in sgplot, how to add macro variable in footnote?&lt;/P&gt;&lt;P&gt;I add macro variables in title and footnote, the title shows but footnote doesn't. I don't know why. anyone can help?&lt;/P&gt;&lt;P&gt;thanks a lot. below is my code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24548iC8C4550593B17F16/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.jpg" alt="test.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
by sex;
run;

data c1;
  set class;
   if sex='M' then do; lloq=5.1; unit='mg/kg';sexn=1; end;
   if sex='F' then do; lloq=3; unit='mg/kg'; sexn=2; end;


run;



%MACRO ODS;
ods rtf file="c:\mean_plot.rtf"     STYLE=Styles.Stat     ;
%MEND;
%ODS;

%MACRO c1(ALLTEST,LL);

      TITLE H=1 font= 'Courier New' c=black "mean figure  of &amp;amp;ALLTEST";
 footnote H=1 j=l font= 'Courier New' c=black 'Notes: dotted line = LLOQ &amp;amp;LL';

      proc sgplot data=c1;
	      
             where 11&amp;lt;=age&amp;lt;=15;
            vline age/response=WEIGHT group=sexn grouporder=ascending stat=mean limitstat=stderr name="a"  markers;
			refline &amp;amp;LL/axis=y label="LLOQ=&amp;amp;ll" LABELLOC= INSIDE lineattrs= (pattern=2);
            xaxis type= linear GRID values=( 0 to 21 by 3);
            yaxis type=log  GRID values=( 1 10 50 100 200) display=all    logstyle=logexpand minor ;
            keylegend 'a'/noborder;
		
      run;

%MEND;
%c1(ALLTEST=test project,LL=20);
ods rtf CLOSE;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Nov 2018 01:35:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-how-to-add-macro-variable-in-footnote/m-p/509394#M17332</guid>
      <dc:creator>magicdj</dc:creator>
      <dc:date>2018-11-01T01:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot, how to add macro variable in footnote?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-how-to-add-macro-variable-in-footnote/m-p/509396#M17333</link>
      <description>&lt;P&gt;Double quotes. Macro variables on resolve in double quotes, &amp;nbsp;not single quotes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use single quotes if you have text that has an &amp;amp; or % sign in it . Otherwise, in double quotes, SAS will try to interpret that as a macro or macro variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/224340"&gt;@magicdj&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;in sgplot, how to add macro variable in footnote?&lt;/P&gt;
&lt;P&gt;I add macro variables in title and footnote, the title shows but footnote doesn't. I don't know why. anyone can help?&lt;/P&gt;
&lt;P&gt;thanks a lot. below is my code.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24548iC8C4550593B17F16/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.jpg" alt="test.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
by sex;
run;

data c1;
  set class;
   if sex='M' then do; lloq=5.1; unit='mg/kg';sexn=1; end;
   if sex='F' then do; lloq=3; unit='mg/kg'; sexn=2; end;


run;



%MACRO ODS;
ods rtf file="c:\mean_plot.rtf"     STYLE=Styles.Stat     ;
%MEND;
%ODS;

%MACRO c1(ALLTEST,LL);

      TITLE H=1 font= 'Courier New' c=black "mean figure  of &amp;amp;ALLTEST";
 footnote H=1 j=l font= 'Courier New' c=black 'Notes: dotted line = LLOQ &amp;amp;LL';

      proc sgplot data=c1;
	      
             where 11&amp;lt;=age&amp;lt;=15;
            vline age/response=WEIGHT group=sexn grouporder=ascending stat=mean limitstat=stderr name="a"  markers;
			refline &amp;amp;LL/axis=y label="LLOQ=&amp;amp;ll" LABELLOC= INSIDE lineattrs= (pattern=2);
            xaxis type= linear GRID values=( 0 to 21 by 3);
            yaxis type=log  GRID values=( 1 10 50 100 200) display=all    logstyle=logexpand minor ;
            keylegend 'a'/noborder;
		
      run;

%MEND;
%c1(ALLTEST=test project,LL=20);
ods rtf CLOSE;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 01:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-how-to-add-macro-variable-in-footnote/m-p/509396#M17333</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-01T01:39:57Z</dc:date>
    </item>
  </channel>
</rss>

