<?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: How to estimate the begining and ending date of a quadrimester in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-estimate-the-begining-and-ending-date-of-a-quadrimester/m-p/955628#M45680</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The MONTH4 interval should do it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
date='28DEC2013'd;
qm_curr_beg=intnx('month4',date,0,'b');
qm_curr_end=intnx('month4',date,0,'e');
qm_prev_beg=intnx('month4',date,-1,'b');
qm_prev_end=intnx('month4',date,-1,'e');
format date qm: date9.;
put (_numeric_)(=/);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;date=28DEC2013
qm_curr_beg=01SEP2013
qm_curr_end=31DEC2013
qm_prev_beg=01MAY2013
qm_prev_end=31AUG2013&lt;/PRE&gt;</description>
    <pubDate>Thu, 09 Jan 2025 14:40:12 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2025-01-09T14:40:12Z</dc:date>
    <item>
      <title>How to estimate the begining and ending date of a quadrimester</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-estimate-the-begining-and-ending-date-of-a-quadrimester/m-p/955624#M45679</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an old calendar and I am trying to recalculate the varioius date in it.&lt;/P&gt;
&lt;P&gt;One of the issue I have, is to estimate the begining date and the ending date of the previous quadrimester (a fourth months period).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As example in the old calendar, imagine that I have the date = '28DEC2013 so the ending date for the corresponding quadrimester will be 31DEC2013&lt;/P&gt;
&lt;P&gt;and the begining date will be 01SEP2013. Therefore, the previous quadrimester begining date value will be 01MAY2013 and the ending date will be 31AUG2013.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was trying to use the intnx function to estimate those but I don't see the quadrimester interval into the documentation.&lt;/P&gt;
&lt;P&gt;I think that we can use user defined interval but I don't know how to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does someone should help me and provide me an example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 14:09:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-estimate-the-begining-and-ending-date-of-a-quadrimester/m-p/955624#M45679</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2025-01-09T14:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to estimate the begining and ending date of a quadrimester</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-estimate-the-begining-and-ending-date-of-a-quadrimester/m-p/955628#M45680</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The MONTH4 interval should do it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
date='28DEC2013'd;
qm_curr_beg=intnx('month4',date,0,'b');
qm_curr_end=intnx('month4',date,0,'e');
qm_prev_beg=intnx('month4',date,-1,'b');
qm_prev_end=intnx('month4',date,-1,'e');
format date qm: date9.;
put (_numeric_)(=/);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;date=28DEC2013
qm_curr_beg=01SEP2013
qm_curr_end=31DEC2013
qm_prev_beg=01MAY2013
qm_prev_end=31AUG2013&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2025 14:40:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-estimate-the-begining-and-ending-date-of-a-quadrimester/m-p/955628#M45680</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-01-09T14:40:12Z</dc:date>
    </item>
  </channel>
</rss>

