<?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: Converting to month macro getting just January.... in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Converting-to-month-macro-getting-just-January/m-p/82672#M17823</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;Delte extra ....'month' in the following&amp;nbsp; line and check/...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rolling_month=put((intnx("month", date_end, 1, "end")), $monname.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This gives....rolling_month ........February...&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ALLU&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date="1FEB2013"d;&amp;nbsp; *This is the date of run (regarding data up until month before date of run);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date_end=intnx("month", date, -1, "end");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rolling_month=put((intnx("month", date_end, 1, "end")), $monname.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rolling_month_end=put((intnx("month", date_end, -11, "sameday")), $yymmn6.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format date date_end date9.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Mar 2013 12:43:05 GMT</pubDate>
    <dc:creator>allurai0412</dc:creator>
    <dc:date>2013-03-20T12:43:05Z</dc:date>
    <item>
      <title>Converting to month macro getting just January....</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-to-month-macro-getting-just-January/m-p/82671#M17822</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'm not sure why this is not giving me the right date.&amp;nbsp; I'm trying to create a macro from to pull 'February' as the "rolling_month", but "rolling_month" comes out at January (even when I change the -11 to something else, like 13 or 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data date;&lt;/P&gt;&lt;P&gt;date="1FEB2013"d;&amp;nbsp; *This is the date of run (regarding data up until month before date of run);&lt;/P&gt;&lt;P&gt;date_end=intnx("month", date, -1, "end");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rolling_month=put((month(intnx("month", date_end, -11, "begin"))), $monname.);&lt;/P&gt;&lt;P&gt;rolling_month_end=put((intnx("month", date_end, -11, "sameday")), $yymmn6.);&lt;/P&gt;&lt;P&gt;format date date_end date9.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=date;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!!&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 12:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-to-month-macro-getting-just-January/m-p/82671#M17822</guid>
      <dc:creator>CamannC</dc:creator>
      <dc:date>2013-03-20T12:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Converting to month macro getting just January....</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-to-month-macro-getting-just-January/m-p/82672#M17823</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;Delte extra ....'month' in the following&amp;nbsp; line and check/...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rolling_month=put((intnx("month", date_end, 1, "end")), $monname.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This gives....rolling_month ........February...&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ALLU&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date="1FEB2013"d;&amp;nbsp; *This is the date of run (regarding data up until month before date of run);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date_end=intnx("month", date, -1, "end");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rolling_month=put((intnx("month", date_end, 1, "end")), $monname.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rolling_month_end=put((intnx("month", date_end, -11, "sameday")), $yymmn6.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format date date_end date9.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 12:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-to-month-macro-getting-just-January/m-p/82672#M17823</guid>
      <dc:creator>allurai0412</dc:creator>
      <dc:date>2013-03-20T12:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Converting to month macro getting just January....</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-to-month-macro-getting-just-January/m-p/82673#M17824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked!!&amp;nbsp; Thanks allurai!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 15:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-to-month-macro-getting-just-January/m-p/82673#M17824</guid>
      <dc:creator>CamannC</dc:creator>
      <dc:date>2013-03-20T15:48:19Z</dc:date>
    </item>
  </channel>
</rss>

