<?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 make proc report header automatically display current month? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-proc-report-header-automatically-display-current/m-p/327455#M73056</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/50296"&gt;@ernie86&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;proc report data=A out=B;&lt;BR /&gt; title j=left h=12pt bold "%sysfunc(month("&amp;amp;sysdate"d))";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the report header automatically shows&amp;nbsp;the current month such as January, February, March.... However, my code is returning number that represent the current month. So the header is displaying 1 instead of January. Can someone please tell me how to make it spell out the month?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You need to "print" the value of sysdate using a format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;25         %put NOTE: **%sysfunc(putn("&amp;amp;sysdate"d,monname-l))**;
NOTE: **January  **&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to remove the&amp;nbsp;blanks at the end of the string returned from PUTN&amp;nbsp;you can use %UNQUOTE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;25         %put NOTE: **%unquote(%sysfunc(putn("&amp;amp;sysdate"d,monname-l)))**;
NOTE: **January**&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2017 17:35:50 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2017-01-25T17:35:50Z</dc:date>
    <item>
      <title>How to make proc report header automatically display current month?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-proc-report-header-automatically-display-current/m-p/327445#M73053</link>
      <description>&lt;P&gt;proc report data=A out=B;&lt;BR /&gt; title j=left h=12pt bold "%sysfunc(month("&amp;amp;sysdate"d))";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the report header automatically shows&amp;nbsp;the current month such as January, February, March.... However, my code is returning number that represent the current month. So the header is displaying 1 instead of January. Can someone please tell me how to make it spell out the month?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 16:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-proc-report-header-automatically-display-current/m-p/327445#M73053</guid>
      <dc:creator>ernie86</dc:creator>
      <dc:date>2017-01-25T16:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to make proc report header automatically display current month?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-proc-report-header-automatically-display-current/m-p/327455#M73056</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/50296"&gt;@ernie86&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;proc report data=A out=B;&lt;BR /&gt; title j=left h=12pt bold "%sysfunc(month("&amp;amp;sysdate"d))";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the report header automatically shows&amp;nbsp;the current month such as January, February, March.... However, my code is returning number that represent the current month. So the header is displaying 1 instead of January. Can someone please tell me how to make it spell out the month?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You need to "print" the value of sysdate using a format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;25         %put NOTE: **%sysfunc(putn("&amp;amp;sysdate"d,monname-l))**;
NOTE: **January  **&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to remove the&amp;nbsp;blanks at the end of the string returned from PUTN&amp;nbsp;you can use %UNQUOTE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;25         %put NOTE: **%unquote(%sysfunc(putn("&amp;amp;sysdate"d,monname-l)))**;
NOTE: **January**&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 17:35:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-proc-report-header-automatically-display-current/m-p/327455#M73056</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2017-01-25T17:35:50Z</dc:date>
    </item>
  </channel>
</rss>

