<?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 Embed a parameter into Title statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Embed-a-parameter-into-Title-statement/m-p/43174#M8832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use double quotation marks, not single, macro variables will not resolve inside single quotation marks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2011 19:01:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2011-08-04T19:01:49Z</dc:date>
    <item>
      <title>Embed a parameter into Title statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Embed-a-parameter-into-Title-statement/m-p/43173#M8831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if its possible to embed a parameter into the title statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the parameter&lt;/P&gt;&lt;P&gt;%let cur_monthend = 20110731 ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I want to have a title statement before my proc means something similar to ,&lt;/P&gt;&lt;P&gt;Title ' Summary Report &amp;amp;cur_monthend' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but of course the above doesnt work, the &amp;amp;cur_monthend comes out as a text, I was wondering if it was possible so that it uses the parameter to output the value so the title would look something like&lt;/P&gt;&lt;P&gt;"Summary Report 20110731"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 18:41:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Embed-a-parameter-into-Title-statement/m-p/43173#M8831</guid>
      <dc:creator>Danglytics</dc:creator>
      <dc:date>2011-08-04T18:41:50Z</dc:date>
    </item>
    <item>
      <title>Embed a parameter into Title statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Embed-a-parameter-into-Title-statement/m-p/43174#M8832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use double quotation marks, not single, macro variables will not resolve inside single quotation marks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 19:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Embed-a-parameter-into-Title-statement/m-p/43174#M8832</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-08-04T19:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Embed a parameter into Title statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Embed-a-parameter-into-Title-statement/m-p/43175#M8833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ... use double-quotes on the title ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;* hard coded;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;%let cur_monthend = 20110731 ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;title "Summary Report &amp;amp;cur_monthend" ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;proc print data=sashelp.class (obs=1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Summary Report 20110731&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sex&amp;nbsp;&amp;nbsp;&amp;nbsp; Age&amp;nbsp;&amp;nbsp;&amp;nbsp; Height&amp;nbsp;&amp;nbsp;&amp;nbsp; Weight&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Alfred&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 69&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 112.5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could make the code 'dynamic' ...&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;* changes with the day job is run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;call symputx('cur_monthend', put(intnx('month',today(), 0,'e'),yymmddn.));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;title "Summary Report &amp;amp;cur_monthend";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;proc print data=sashelp.class (obs=1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Summary Report 20110831&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sex&amp;nbsp;&amp;nbsp;&amp;nbsp; Age&amp;nbsp;&amp;nbsp;&amp;nbsp; Height&amp;nbsp;&amp;nbsp;&amp;nbsp; Weight&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Alfred&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 69&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 112.5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;from ... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;A href="http://www.datimpact.be/tips/finding-the-last-day-of-the-month-in-sas-using-intnx.php"&gt;http://www.datimpact.be/tips/finding-the-last-day-of-the-month-in-sas-using-intnx.php&lt;/A&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 19:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Embed-a-parameter-into-Title-statement/m-p/43175#M8833</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2011-08-04T19:16:36Z</dc:date>
    </item>
  </channel>
</rss>

