<?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: How to replace text strings for TITLEs inside the macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-text-strings-for-TITLEs-inside-the-macro/m-p/526746#M143509</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Data for &amp;amp;name";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Use double-quotes, not single quotes, when you are working with a macro variable.&lt;/P&gt;</description>
    <pubDate>Sun, 13 Jan 2019 17:16:32 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-01-13T17:16:32Z</dc:date>
    <item>
      <title>How to replace text strings for TITLEs inside the macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-text-strings-for-TITLEs-inside-the-macro/m-p/526741#M143506</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to assign individual titles to multiple PROC MEANS outputs in the macro as shown below. Any idea how to achieve proc means output has proper TITLEs after the names of datasets? Right now, all proc mean outputs are produced to:&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;TABLE class="systitleandfootercontainer" summary="Page Layout" frame="void" rules="none" cellspacing="1" cellpadding="1" width="100%" border="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="c systemtitle"&gt;DATA FOR &amp;amp;NAME&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%LET NAME=&amp;amp;TAB;&lt;BR /&gt;PROC MEANS DATA=&amp;amp;AGE_TAB MIN MAX MAXDEC=2 MEAN MEDIAN;&lt;BR /&gt;VAR N_BLOCK;&lt;BR /&gt;TITLE 'DATA FOR &amp;amp;NAME';&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%SYMDEL;
%MACRO MODELS(TAB,TAB1,BLOCK_TAB,AGE_TAB);
PROC SQL;
CREATE TABLE &amp;amp;TAB1 AS SELECT 
...
QUIT;

PROC SQL;
CREATE TABLE &amp;amp;BLOCK_TAB AS
SELECT FIPS, AGECAT,SUM(OUTCOME) AS N_BLOCK
FROM &amp;amp;TAB1
GROUP BY FIPS,AGECAT;
QUIT;

PROC SQL;
CREATE TABLE &amp;amp;AGE_TAB&lt;BR /&gt;...FROM &amp;amp;BLOCK_TAB
QUIT;

%LET NAME=&amp;amp;TAB;
PROC MEANS DATA=&amp;amp;AGE_TAB MIN;
VAR N_BLOCK;
TITLE 'DATA FOR &amp;amp;NAME';
RUN;

%MEND MODELS;
%MODELS(Oral_Pharynx  ,Oral_Pharynx_U  ,B_Oral_Pharynx  ,AGE_Oral_Pharynx  );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jan 2019 16:46:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-text-strings-for-TITLEs-inside-the-macro/m-p/526741#M143506</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2019-01-13T16:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace text strings for TITLEs inside the macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-text-strings-for-TITLEs-inside-the-macro/m-p/526746#M143509</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Data for &amp;amp;name";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Use double-quotes, not single quotes, when you are working with a macro variable.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jan 2019 17:16:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-text-strings-for-TITLEs-inside-the-macro/m-p/526746#M143509</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-13T17:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace text strings for TITLEs inside the macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-replace-text-strings-for-TITLEs-inside-the-macro/m-p/526756#M143514</link>
      <description>wow, now I KNOW! thank you.</description>
      <pubDate>Sun, 13 Jan 2019 18:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-replace-text-strings-for-TITLEs-inside-the-macro/m-p/526756#M143514</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2019-01-13T18:44:53Z</dc:date>
    </item>
  </channel>
</rss>

