<?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: Proc Report - Month number as text to month name in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Month-number-as-text-to-month-name/m-p/615923#M77002</link>
    <description>&lt;P&gt;Assuming month is integers 1 through 12 then you can use the MONNAME format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define month / group across order=internal style(header)=[just=center]
     "Month" format=monname3.;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2020 13:44:51 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-01-08T13:44:51Z</dc:date>
    <item>
      <title>Proc Report - Month number as text to month name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Month-number-as-text-to-month-name/m-p/615921#M77001</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been working with proc report and proc sgplot to send output to ODS Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am summarising some sales data by year and month to give me a comparison of how monthly sales have changes over time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the graph to present month name instead of number,&amp;nbsp;I have used the following:&lt;/P&gt;&lt;PRE&gt;axis1 label=none
   value=('JAN' 'FEB' 'MAR' 'APR' 'MAY' 'JUN' 'JUL' 'AUG' 'SEP' 'OCT' 'NOV' 'DEC')
   order=1 to 12 by 1
   offset=(2)
   width=1;&lt;/PRE&gt;&lt;P&gt;In proc report, I can use the same variable to get a nice summary of month&amp;nbsp;across my table, but I can't seem to find a method to get the same results as the graph...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my proc report code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=volume_cummulative(where=(year &amp;gt; "&amp;amp;base_year")) split="*"
   style(header) = [font_weight=bold
                    font_size=8pt
                    color=black
                    bordertopstyle=solid
                    bordertopwidth=0.1pt
                    bordertopcolor=black
                    borderbottomstyle=solid
                    borderbottomwidth=0.1
                    borderbottomcolor=black
                    backgroundcolor=cornflowerblue
                    just=center]
   style(column)=[font_size=8pt];
   
   column year month, (cumm /*revenue Invoice_Price*/);
   
   define year / group "Year" style(header)=[just=left] style(column)=[font_weight=bold];
   define month / group across order=internal style(header)=[just=center] "Month";
   define cumm / analysis sum format=comma12.2 "Volume";
 
run;   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any&amp;nbsp;ideas warmly welcomed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Analytics Pro (9.4 M6)&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 13:36:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Month-number-as-text-to-month-name/m-p/615921#M77001</guid>
      <dc:creator>Jim_Ogilvie</dc:creator>
      <dc:date>2020-01-08T13:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Month number as text to month name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Month-number-as-text-to-month-name/m-p/615923#M77002</link>
      <description>&lt;P&gt;Assuming month is integers 1 through 12 then you can use the MONNAME format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define month / group across order=internal style(header)=[just=center]
     "Month" format=monname3.;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 13:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Month-number-as-text-to-month-name/m-p/615923#M77002</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-08T13:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Month number as text to month name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Month-number-as-text-to-month-name/m-p/615925#M77003</link>
      <description>&lt;P&gt;Thanks Paige,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This results in a single column being displayed titled "Jan".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the problem here is that monname. is&amp;nbsp;being applied to the integers 1 through to 12 (01JAN1960 to 12JAN1960).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 13:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Month-number-as-text-to-month-name/m-p/615925#M77003</guid>
      <dc:creator>Jim_Ogilvie</dc:creator>
      <dc:date>2020-01-08T13:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Month number as text to month name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Month-number-as-text-to-month-name/m-p/615927#M77004</link>
      <description>&lt;P&gt;Then you don't have integers 1 through 12 as your months.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are some of the &lt;U&gt;unformatted&lt;/U&gt; values of the variable MONTH?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 13:52:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Month-number-as-text-to-month-name/m-p/615927#M77004</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-08T13:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Month number as text to month name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Month-number-as-text-to-month-name/m-p/615928#M77005</link>
      <description>&lt;P&gt;Nevermind, I was mistaken about the MONNAME format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you would need a custom format&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
&amp;nbsp; &amp;nbsp; value monthf 1='Jan' 2='Feb' ... ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then use FORMAT=MONTHF. in your PROC REPORT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 13:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Month-number-as-text-to-month-name/m-p/615928#M77005</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-08T13:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Month number as text to month name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Month-number-as-text-to-month-name/m-p/615932#M77006</link>
      <description>&lt;P&gt;Many thanks Paige, that has worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had previously tried that, but must have messed up the syntax, as it didn't work...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy days. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 14:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Month-number-as-text-to-month-name/m-p/615932#M77006</guid>
      <dc:creator>Jim_Ogilvie</dc:creator>
      <dc:date>2020-01-08T14:08:10Z</dc:date>
    </item>
  </channel>
</rss>

