<?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: code to extract data month data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516231#M139396</link>
    <description>will this extract the 1st day of all the months present in data set .??&lt;BR /&gt;</description>
    <pubDate>Tue, 27 Nov 2018 05:43:15 GMT</pubDate>
    <dc:creator>anirudhs</dc:creator>
    <dc:date>2018-11-27T05:43:15Z</dc:date>
    <item>
      <title>code to extract data month data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516224#M139391</link>
      <description>&lt;P&gt;i have a data set containing the data of 365 days.&lt;/P&gt;&lt;P&gt;i want to extract the data of 1st of every month and last day of every month.&lt;/P&gt;&lt;P&gt;eg. if i have data of 3 months jan, feb,march then i want output data set to contain 1st jan, 31st jan, 1st feb, 28th feb, 1st march,31st march.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 05:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516224#M139391</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2018-11-27T05:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: code to extract data month data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516225#M139392</link>
      <description>&lt;P&gt;a simple intnx with begin and end option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;would be nice if you posted sample of what you have and what you desire as output&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 05:02:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516225#M139392</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-27T05:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: code to extract data month data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516228#M139393</link>
      <description>&lt;P&gt;something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data monthBegEnd;
set myData;
if date = intnx("month", date, 0, "beginning") or 
   date = intnx("month", date, 0, "end") then output;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Nov 2018 05:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516228#M139393</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-11-27T05:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: code to extract data month data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516229#M139394</link>
      <description>&lt;P&gt;start_date value&lt;BR /&gt;&lt;BR /&gt;1/1/2018 123&lt;BR /&gt;1/2/2018 124&lt;BR /&gt;1/3/2018 125&lt;BR /&gt;1/4/2018 126&lt;BR /&gt;1/5/2018 127&lt;BR /&gt;1/6/2018 128&lt;BR /&gt;1/30/2018 129&lt;BR /&gt;1/31/2018 130&lt;BR /&gt;2/1/2018 131&lt;BR /&gt;2/2/2018 132&lt;BR /&gt;2/3/2018 133&lt;BR /&gt;2/4/2018 134&lt;BR /&gt;2/27/2018 135&lt;BR /&gt;2/28/2018 136&lt;BR /&gt;3/1/2018 137&lt;BR /&gt;3/2/2018 138&lt;BR /&gt;3/3/2018 139&lt;BR /&gt;3/4/2018 140&lt;BR /&gt;3/5/2018 141&lt;BR /&gt;3/6/2018 142&lt;BR /&gt;3/7/2018 143&lt;BR /&gt;3/8/2018 144&lt;BR /&gt;3/29/2018 145&lt;BR /&gt;3/30/2018 146&lt;BR /&gt;3/31/2018 147&lt;BR /&gt;4/1/2018 148&lt;BR /&gt;4/2/2018 149&lt;BR /&gt;4/3/2018 150&lt;BR /&gt;&lt;BR /&gt;Output Data B:&lt;BR /&gt;start_date value&lt;BR /&gt;&lt;BR /&gt;1/1/2018 123&lt;BR /&gt;1/31/2018 130&lt;BR /&gt;2/1/2018 131&lt;BR /&gt;2/28/2018 136&lt;BR /&gt;3/1/2018 137&lt;BR /&gt;3/31/2018 147&lt;BR /&gt;4/1/2018 148&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 05:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516229#M139394</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2018-11-27T05:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: code to extract data month data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516230#M139395</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;code does that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 05:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516230#M139395</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-27T05:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: code to extract data month data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516231#M139396</link>
      <description>will this extract the 1st day of all the months present in data set .??&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Nov 2018 05:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516231#M139396</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2018-11-27T05:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: code to extract data month data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516233#M139398</link>
      <description>&lt;P&gt;Maxim #4.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 06:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516233#M139398</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-27T06:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: code to extract data month data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516235#M139399</link>
      <description>&lt;P&gt;It will extract all dates which are the first of the month or the last of the month. It will never select March 2, for example, even if March 1 is absent from your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try it and see. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 06:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516235#M139399</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-11-27T06:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: code to extract data month data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516240#M139401</link>
      <description>&lt;P&gt;sas learning&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 07:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/code-to-extract-data-month-data/m-p/516240#M139401</guid>
      <dc:creator>learsaas</dc:creator>
      <dc:date>2018-11-27T07:34:58Z</dc:date>
    </item>
  </channel>
</rss>

