<?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: Variable to express date ranges in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Variable-to-express-date-ranges/m-p/120579#M33254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm NOT suggesting this is the best way to accomplish what you want, but are your data and problem similar to the one described at: &lt;A _jive_internal="true" href="https://communities.sas.com/message/185021#185021"&gt;https://communities.sas.com/message/185021#185021&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Oct 2013 23:54:59 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2013-10-22T23:54:59Z</dc:date>
    <item>
      <title>Variable to express date ranges</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Variable-to-express-date-ranges/m-p/120577#M33252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; BPM = INTNX(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'Month'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;,&amp;amp;pbd_date,-&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'b'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green;"&gt;/*1st day LM*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; EPM = INTNX(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'Month'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;,&amp;amp;pbd_date,-&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'e'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green;"&gt;/*Last day last Month*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;CALL&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; SYMPUT(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'pmb'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;,BPM);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;CALL&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; SYMPUT(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'pme'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;,EPM);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; &amp;amp;pmb &amp;amp;pme &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;I want to assign a variable name called LastMth to encompass a range between BPM and EPM (or all of last month).&amp;nbsp; I want to be able to use this in a datastep to capture records that fall within the entire month(last month).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;For example something like LastMth = range between &amp;amp;pmb and &amp;amp;pme ??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;then I want to use it in a datastep like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;data want_&amp;amp;LastMth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;set something;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 23:28:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Variable-to-express-date-ranges/m-p/120577#M33252</guid>
      <dc:creator>omega1983</dc:creator>
      <dc:date>2013-10-22T23:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Variable to express date ranges</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Variable-to-express-date-ranges/m-p/120578#M33253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you please give us some sample data and expected output data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 23:32:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Variable-to-express-date-ranges/m-p/120578#M33253</guid>
      <dc:creator>Mit</dc:creator>
      <dc:date>2013-10-22T23:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Variable to express date ranges</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Variable-to-express-date-ranges/m-p/120579#M33254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm NOT suggesting this is the best way to accomplish what you want, but are your data and problem similar to the one described at: &lt;A _jive_internal="true" href="https://communities.sas.com/message/185021#185021"&gt;https://communities.sas.com/message/185021#185021&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 23:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Variable-to-express-date-ranges/m-p/120579#M33254</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-10-22T23:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Variable to express date ranges</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Variable-to-express-date-ranges/m-p/120580#M33255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want monthly data try yearmon7.&amp;nbsp; or yymm6. format for your dates which will group all data into months instead of days. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 23:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Variable-to-express-date-ranges/m-p/120580#M33255</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-10-22T23:58:15Z</dc:date>
    </item>
  </channel>
</rss>

