<?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 exclude last day of each month in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/exclude-last-day-of-each-month/m-p/786992#M251356</link>
    <description>&lt;P&gt;Hey Guys !&lt;/P&gt;
&lt;P&gt;Is it possible to write a function to a condition, e.g. Where, which will turn off the last days of the month, ie. If the last day of December is 2021-12-31, I would like my condition not to be excluded?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;	when/where datepart(t1.PRP_END_DATE) IS NOT NULL and datepart(t1.PRP_END_DATE) - &amp;amp;gv_date_dly. &amp;gt;=0 and ( function ) THEN 'A' 
&lt;/PRE&gt;
&lt;P&gt;for example like a below : ?&lt;/P&gt;
&lt;PRE&gt;     ,intnx('month',datepart(t1.PRP_END_DATE),-1,'e') format=yymmd7. as POLICY_VINTAGE,
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 18:04:58 GMT</pubDate>
    <dc:creator>Gieorgie</dc:creator>
    <dc:date>2021-12-21T18:04:58Z</dc:date>
    <item>
      <title>exclude last day of each month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/exclude-last-day-of-each-month/m-p/786992#M251356</link>
      <description>&lt;P&gt;Hey Guys !&lt;/P&gt;
&lt;P&gt;Is it possible to write a function to a condition, e.g. Where, which will turn off the last days of the month, ie. If the last day of December is 2021-12-31, I would like my condition not to be excluded?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;	when/where datepart(t1.PRP_END_DATE) IS NOT NULL and datepart(t1.PRP_END_DATE) - &amp;amp;gv_date_dly. &amp;gt;=0 and ( function ) THEN 'A' 
&lt;/PRE&gt;
&lt;P&gt;for example like a below : ?&lt;/P&gt;
&lt;PRE&gt;     ,intnx('month',datepart(t1.PRP_END_DATE),-1,'e') format=yymmd7. as POLICY_VINTAGE,
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 18:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/exclude-last-day-of-each-month/m-p/786992#M251356</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-12-21T18:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: exclude last day of each month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/exclude-last-day-of-each-month/m-p/786996#M251357</link>
      <description>&lt;P&gt;I would imagine something like this would work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where your_date_variable ne intnx('month',your_date_variable,0,'e')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 18:27:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/exclude-last-day-of-each-month/m-p/786996#M251357</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-12-21T18:27:10Z</dc:date>
    </item>
  </channel>
</rss>

