<?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 SAS Macro in title statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-in-title-statement/m-p/636177#M188964</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have currently got the following code below, but can someone please help me change the text that I have currently got highlighted in red, so that the title for each month of my results will be included, so that it should say "February 2020 - Differences between open date and register" and&amp;nbsp;"January 2020 - Differences between open date and register"? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;%macro monthly_check(month_yyyy,startdt,enddt);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data &amp;amp;month_yyyy. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;set test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;where "&amp;amp;startdt."d &amp;lt;= OPEN_DATE &amp;lt;= "&amp;amp;enddt."d;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Difference = intck('MONTH',OPEN_DATE,REGISTER);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=&amp;amp;month_yyyy. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;title '&lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&amp;amp;month_yyyy.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt; - Differences between open date and register';&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;table Difference;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;title;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%mend monthly_check;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%monthly_check(February2020,01Feb2020,29Feb2020);&lt;/P&gt;&lt;P&gt;%monthly_check(January2020,01Jan2020,31Jan2020);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 11:45:24 GMT</pubDate>
    <dc:creator>jeremy4</dc:creator>
    <dc:date>2020-03-31T11:45:24Z</dc:date>
    <item>
      <title>SAS Macro in title statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-in-title-statement/m-p/636177#M188964</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have currently got the following code below, but can someone please help me change the text that I have currently got highlighted in red, so that the title for each month of my results will be included, so that it should say "February 2020 - Differences between open date and register" and&amp;nbsp;"January 2020 - Differences between open date and register"? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;%macro monthly_check(month_yyyy,startdt,enddt);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data &amp;amp;month_yyyy. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;set test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;where "&amp;amp;startdt."d &amp;lt;= OPEN_DATE &amp;lt;= "&amp;amp;enddt."d;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Difference = intck('MONTH',OPEN_DATE,REGISTER);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=&amp;amp;month_yyyy. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;title '&lt;U&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&amp;amp;month_yyyy.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt; - Differences between open date and register';&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;table Difference;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;title;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%mend monthly_check;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%monthly_check(February2020,01Feb2020,29Feb2020);&lt;/P&gt;&lt;P&gt;%monthly_check(January2020,01Jan2020,31Jan2020);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 11:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-in-title-statement/m-p/636177#M188964</guid>
      <dc:creator>jeremy4</dc:creator>
      <dc:date>2020-03-31T11:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro in title statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-in-title-statement/m-p/636183#M188966</link>
      <description>&lt;P&gt;If you want macro variables to resolve, you need to use double quotes; single quotes prevent any resolution of macro triggers.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 11:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-in-title-statement/m-p/636183#M188966</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-31T11:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro in title statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-in-title-statement/m-p/636185#M188968</link>
      <description>&lt;P&gt;For macro variables to resolve they need to be in double quotes.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro monthly_check(month_yyyy,startdt,enddt);
  data &amp;amp;month_yyyy.;
    set test;
    where "&amp;amp;startdt."d &amp;lt;= OPEN_DATE &amp;lt;= "&amp;amp;enddt."d;
    Difference = intck('MONTH',OPEN_DATE,REGISTER);
  run;

  title "&amp;amp;month_yyyy. - Differences between open date and register";
  proc freq data=&amp;amp;month_yyyy.;
    table Difference;
  run;
  title;
%mend monthly_check;

%monthly_check(February2020,01Feb2020,29Feb2020);
%monthly_check(January2020,01Jan2020,31Jan2020);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Mar 2020 11:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-in-title-statement/m-p/636185#M188968</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-03-31T11:54:11Z</dc:date>
    </item>
  </channel>
</rss>

