<?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 aggregation variable between two dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778454#M247779</link>
    <description>&lt;P&gt;I have such a table and I would like to sum or group the table so as to reduce the number of date results and name this position prior (so that they are summed up to 2 months before today's date)&lt;/P&gt;
&lt;P&gt;what i have :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gieorgie_0-1636018409414.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65402i5D33B263DF3F8E95/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gieorgie_0-1636018409414.png" alt="Gieorgie_0-1636018409414.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;would i expect&lt;/P&gt;
&lt;TABLE border="1" width="99.8689384010485%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50.58977719528178%"&gt;POLICY_VINTAGE&lt;/TD&gt;
&lt;TD width="49.279161205766705%"&gt;EXPIRED_TODAY&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.58977719528178%"&gt;prior&lt;/TD&gt;
&lt;TD width="49.279161205766705%"&gt;23232&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.58977719528178%"&gt;2021-09&lt;/TD&gt;
&lt;TD width="49.279161205766705%"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.58977719528178%"&gt;2021-10&lt;/TD&gt;
&lt;TD width="49.279161205766705%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.58977719528178%"&gt;2021-11&lt;/TD&gt;
&lt;TD width="49.279161205766705%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;My sample code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;proc sql;
    create table diff_policy as
        select today.policy_vintage
             , today.EXPIREDas EXPIRED_TODAY
             , prior.EXPIREDas EXPIRED_PRIOR
			 , today.ACTIVE as ACTIVE_TODAY
             , prior.ACTIVE as ACTIVE_PRIOR
			 , today.EXPIRED- prior.EXPIRED as DIFFRENCE_E
			 , today.ACTIVE- prior.ACTIVE as DIFFRENCE_A
        from tablea_new today
        LEFT JOIN
             (select *
              from _work.policy_weekly
              where run_date &amp;lt; today() 
              and today.policy_vintage between today.policy_vintage and &amp;amp;thismonth.-2
              having run_date = max(run_date)
             ) prior
        ON today.policy_vintage = prior.policy_vintage
   ;
quit;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Nov 2021 10:08:41 GMT</pubDate>
    <dc:creator>Gieorgie</dc:creator>
    <dc:date>2021-11-04T10:08:41Z</dc:date>
    <item>
      <title>aggregation variable between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778454#M247779</link>
      <description>&lt;P&gt;I have such a table and I would like to sum or group the table so as to reduce the number of date results and name this position prior (so that they are summed up to 2 months before today's date)&lt;/P&gt;
&lt;P&gt;what i have :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gieorgie_0-1636018409414.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65402i5D33B263DF3F8E95/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gieorgie_0-1636018409414.png" alt="Gieorgie_0-1636018409414.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;would i expect&lt;/P&gt;
&lt;TABLE border="1" width="99.8689384010485%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50.58977719528178%"&gt;POLICY_VINTAGE&lt;/TD&gt;
&lt;TD width="49.279161205766705%"&gt;EXPIRED_TODAY&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.58977719528178%"&gt;prior&lt;/TD&gt;
&lt;TD width="49.279161205766705%"&gt;23232&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.58977719528178%"&gt;2021-09&lt;/TD&gt;
&lt;TD width="49.279161205766705%"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.58977719528178%"&gt;2021-10&lt;/TD&gt;
&lt;TD width="49.279161205766705%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.58977719528178%"&gt;2021-11&lt;/TD&gt;
&lt;TD width="49.279161205766705%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;My sample code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;proc sql;
    create table diff_policy as
        select today.policy_vintage
             , today.EXPIREDas EXPIRED_TODAY
             , prior.EXPIREDas EXPIRED_PRIOR
			 , today.ACTIVE as ACTIVE_TODAY
             , prior.ACTIVE as ACTIVE_PRIOR
			 , today.EXPIRED- prior.EXPIRED as DIFFRENCE_E
			 , today.ACTIVE- prior.ACTIVE as DIFFRENCE_A
        from tablea_new today
        LEFT JOIN
             (select *
              from _work.policy_weekly
              where run_date &amp;lt; today() 
              and today.policy_vintage between today.policy_vintage and &amp;amp;thismonth.-2
              having run_date = max(run_date)
             ) prior
        ON today.policy_vintage = prior.policy_vintage
   ;
quit;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 10:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778454#M247779</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-11-04T10:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: aggregation variable between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778467#M247782</link>
      <description>&lt;P&gt;I can't see how you get the expected output with dates in 2021 from the original data, which has no dates in 2021. Please explain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the future, we request that you present data as SAS data step code (&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;instructions&lt;/A&gt;) instead of as a screen capture or file attachment. We cannot work with screen captures or file attachments.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 11:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778467#M247782</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-04T11:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: aggregation variable between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778470#M247785</link>
      <description>&lt;P&gt;Thanks for the answer, I didn't show the result for 2021 because there are a lot of records between the 1 and the row where the date is. I would like to add up everything by 2021 to minimize the appearance of the table SAMPLE DATA&lt;/P&gt;
&lt;TABLE border="1" width="99.87261146496814%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50.57324840764331%"&gt;POLICY_VINTAGE&lt;/TD&gt;
&lt;TD width="49.29936305732484%"&gt;EXPIRED_TODAY&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.57324840764331%"&gt;2008-11&lt;/TD&gt;
&lt;TD width="49.29936305732484%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.57324840764331%"&gt;2010-01&lt;/TD&gt;
&lt;TD width="49.29936305732484%"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.57324840764331%"&gt;2010-03&lt;/TD&gt;
&lt;TD width="49.29936305732484%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.57324840764331%"&gt;2010-05&lt;/TD&gt;
&lt;TD width="49.29936305732484%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.57324840764331%"&gt;2010-06&lt;/TD&gt;
&lt;TD width="49.29936305732484%"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.57324840764331%"&gt;2010-07&lt;/TD&gt;
&lt;TD width="49.29936305732484%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.57324840764331%"&gt;2010-09&lt;/TD&gt;
&lt;TD width="49.29936305732484%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.57324840764331%"&gt;2021-08&lt;/TD&gt;
&lt;TD width="49.29936305732484%"&gt;365&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.57324840764331%"&gt;2021-09&lt;/TD&gt;
&lt;TD width="49.29936305732484%"&gt;411&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.57324840764331%"&gt;2021-10&lt;/TD&gt;
&lt;TD width="49.29936305732484%"&gt;874&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.57324840764331%"&gt;2021-11&lt;/TD&gt;
&lt;TD width="49.29936305732484%"&gt;93&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;This is expect result :I would like to sum up all the results by 2021 and call them prior&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 96pt;" border="0" width="128" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" style="height: 15.0pt; width: 48pt;"&gt;POLICY_VINTAGE&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;EXPIRED_TODAY&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl66" style="height: 15.0pt;"&gt;prior&lt;/TD&gt;
&lt;TD align="right"&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl65" style="height: 15.0pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD align="right"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl65" style="height: 15.0pt;"&gt;2021-08&lt;/TD&gt;
&lt;TD align="right"&gt;365&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl65" style="height: 15.0pt;"&gt;2021-09&lt;/TD&gt;
&lt;TD align="right"&gt;411&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl65" style="height: 15.0pt;"&gt;2021-10&lt;/TD&gt;
&lt;TD align="right"&gt;874&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl65" style="height: 15.0pt;"&gt;2021-11&lt;/TD&gt;
&lt;TD align="right"&gt;93&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 04 Nov 2021 12:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778470#M247785</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-11-04T12:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: aggregation variable between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778474#M247788</link>
      <description>&lt;P&gt;I'm still not sure I can connect the input to the desired output. If I can't do that, I can't write code. Your desired output shows 2021-09 with a value of 3.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Repeating:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the future, we request that you present data as SAS data step code (&lt;/SPAN&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self" rel="nofollow noopener noreferrer"&gt;instructions&lt;/A&gt;&lt;SPAN&gt;) instead of as a screen capture or file attachment. We cannot work with screen captures or file attachments.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 11:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778474#M247788</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-04T11:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: aggregation variable between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778475#M247789</link>
      <description>i edited my above answear .with corrected output</description>
      <pubDate>Thu, 04 Nov 2021 12:04:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778475#M247789</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-11-04T12:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: aggregation variable between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778477#M247791</link>
      <description>&lt;P&gt;So assuming you have numeric dates (do you?) then this will work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* UNTESTED CODE */
proc format;
    value vintf low-'31JUL2021'd = 'prior' other=[yymmd7.];
run;
proc summary data=have nway;
    class policy_vintage;
    format policy_vintage vintf.;
    var expired_today;
    output out=want sum=;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If your dates are not numeric, then they should be numeric and you should convert them to numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code is untested. If you want tested code, please provide the data in the requested format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 12:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778477#M247791</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-04T12:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: aggregation variable between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778478#M247792</link>
      <description>&lt;P&gt;Thank you very much for your help, I can see that it is getting closer. Policy_Vinatge is a date, not numeric. And after the proc the format changed to numeric.&lt;/P&gt;
&lt;P&gt;now I would like to sum up all the results that meet the proc format as prior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
    create table diff_policy as
		select
		today.policy_vintage format vintf.
             , today.EXPIRED as EXPIRED_TODAY
             , prior.EXPIRED as EXPIRED_PRIOR
			 , today.ACTIVE as ACTIVE_TODAY
             , prior.ACTIVE as ACTIVE_PRIOR
			 , today.EXPIRED- prior.EXPIRED as DIFFRENCE_E
			 , today.ACTIVE- prior.ACTIVE as DIFFRENCE_A
        from tablea_new today
        LEFT JOIN
             (select *
              from _work.policy_weekly
              where run_date &amp;lt; today() 
              having run_date = max(run_date)
             ) prior
        ON today.policy_vintage = prior.policy_vintage
   ;
quit;&lt;/PRE&gt;
&lt;P&gt;what i get&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="99.87261146496814%"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="50.57324840764331%" height="20" style="height: 15.0pt; width: 48pt;"&gt;POLICY_VINTAGE&lt;/TD&gt;
&lt;TD width="49.29936305732484%" style="width: 48pt;"&gt;EXPIRED_TODAY&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="50.57324840764331%" height="20" class="xl66" style="height: 15.0pt;"&gt;prior&lt;/TD&gt;
&lt;TD width="49.29936305732484%" align="right"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="50.57324840764331%" height="20" class="xl66" style="height: 15.0pt;"&gt;prior&lt;/TD&gt;
&lt;TD width="49.29936305732484%" align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="50.57324840764331%" height="20" class="xl66" style="height: 15.0pt;"&gt;prior&lt;/TD&gt;
&lt;TD width="49.29936305732484%" align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="50.57324840764331%" height="20" align="right" class="xl65" style="height: 15.0pt;"&gt;2021-08&lt;/TD&gt;
&lt;TD width="49.29936305732484%" align="right"&gt;365&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="50.57324840764331%" height="20" align="right" class="xl65" style="height: 15.0pt;"&gt;2021-10&lt;/TD&gt;
&lt;TD width="49.29936305732484%" align="right"&gt;874&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="50.57324840764331%" height="20" align="right" class="xl65" style="height: 15.0pt;"&gt;2021-11&lt;/TD&gt;
&lt;TD width="49.29936305732484%" align="right"&gt;93&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;what i need&lt;/P&gt;
&lt;TABLE border="1" width="99.87261146496814%"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="50.57324840764331%" height="20" style="height: 15.0pt; width: 48pt;"&gt;POLICY_VINTAGE&lt;/TD&gt;
&lt;TD width="49.29936305732484%" style="width: 48pt;"&gt;EXPIRED_TODAY&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="50.57324840764331%" height="20" class="xl66" style="height: 15.0pt;"&gt;prior&lt;/TD&gt;
&lt;TD width="49.29936305732484%" align="right"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="50.57324840764331%" height="20" align="right" class="xl65" style="height: 15.0pt;"&gt;2021-08&lt;/TD&gt;
&lt;TD width="49.29936305732484%" align="right"&gt;365&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="50.57324840764331%" height="20" align="right" class="xl65" style="height: 15.0pt;"&gt;2021-10&lt;/TD&gt;
&lt;TD width="49.29936305732484%" align="right"&gt;874&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="50.57324840764331%" height="20" align="right" class="xl65" style="height: 15.0pt;"&gt;2021-11&lt;/TD&gt;
&lt;TD width="49.29936305732484%" align="right"&gt;93&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;after proc contenst&lt;/P&gt;
&lt;DIV style="padding-top: 1px; padding-bottom: 8px;"&gt;
&lt;DIV style="padding-top: 1px; padding-bottom: 8px;"&gt;
&lt;DIV id="IDX2" style="padding-top: 1px; padding-bottom: 8px;"&gt;
&lt;TABLE class="table" style="border-spacing: 0;" aria-label="Zmienne"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="r b header" scope="col"&gt;#&lt;/TH&gt;
&lt;TH class="b header" scope="col"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TH class="b header" scope="col"&gt;Typ&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Dł.&lt;/TH&gt;
&lt;TH class="b header" scope="col"&gt;Format&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;5&lt;/TH&gt;
&lt;TD class="data"&gt;ACTIVE_PRIOR&lt;/TD&gt;
&lt;TD class="data"&gt;Num&lt;/TD&gt;
&lt;TD class="r data"&gt;8&lt;/TD&gt;
&lt;TD class="data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;4&lt;/TH&gt;
&lt;TD class="data"&gt;ACTIVE_TODAY&lt;/TD&gt;
&lt;TD class="data"&gt;Num&lt;/TD&gt;
&lt;TD class="r data"&gt;8&lt;/TD&gt;
&lt;TD class="data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;7&lt;/TH&gt;
&lt;TD class="data"&gt;DIFFRENCE_A&lt;/TD&gt;
&lt;TD class="data"&gt;Num&lt;/TD&gt;
&lt;TD class="r data"&gt;8&lt;/TD&gt;
&lt;TD class="data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;6&lt;/TH&gt;
&lt;TD class="data"&gt;DIFFRENCE_E&lt;/TD&gt;
&lt;TD class="data"&gt;Num&lt;/TD&gt;
&lt;TD class="r data"&gt;8&lt;/TD&gt;
&lt;TD class="data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;3&lt;/TH&gt;
&lt;TD class="data"&gt;EXPIRED_PRIOR&lt;/TD&gt;
&lt;TD class="data"&gt;Num&lt;/TD&gt;
&lt;TD class="r data"&gt;8&lt;/TD&gt;
&lt;TD class="data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TD class="data"&gt;EXPIRED_TODAY&lt;/TD&gt;
&lt;TD class="data"&gt;Num&lt;/TD&gt;
&lt;TD class="r data"&gt;8&lt;/TD&gt;
&lt;TD class="data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="data"&gt;POLICY_VINTAGE&lt;/TD&gt;
&lt;TD class="data"&gt;Num&lt;/TD&gt;
&lt;TD class="r data"&gt;8&lt;/TD&gt;
&lt;TD class="data"&gt;YYMMD7&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 12:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778478#M247792</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-11-04T12:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: aggregation variable between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778479#M247793</link>
      <description>&lt;P&gt;I don't understand why you show PROC SQL code here, nothing I did requires SQL. What happens when you run the code I showed?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 12:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778479#M247793</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-04T12:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: aggregation variable between two dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778481#M247794</link>
      <description>Now it works, I'm sorry, I'm new and the number of tasks and their scope are too big, thank you very much for your help</description>
      <pubDate>Thu, 04 Nov 2021 12:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/aggregation-variable-between-two-dates/m-p/778481#M247794</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2021-11-04T12:49:37Z</dc:date>
    </item>
  </channel>
</rss>

