<?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 aggregate data for SAS EG? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324532#M9382</link>
    <description>&lt;P&gt;I should apologize.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You posted your question under "Data Management" community.&lt;/P&gt;
&lt;P&gt;My knowledge enables me help at "SAS Programing" community.&lt;/P&gt;
&lt;P&gt;I came upon your question exidentally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you should post again your question under "&lt;STRONG&gt;Analytics&lt;/STRONG&gt;" community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to me that you need SAS ETS procedures, but I'm not sure and not familiar with that model.&lt;/P&gt;
&lt;P&gt;Doing the work with SAS Base is to reinvent the wheel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for holding you that long.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2017 12:03:00 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2017-01-13T12:03:00Z</dc:date>
    <item>
      <title>How to aggregate data for SAS EG?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324042#M9366</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question on aggregating the data, and the data structure looks like an example&amp;nbsp;below: (Table A)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, the first row means 1/3&amp;nbsp;of the demand starting from 17JAN2016 will use for 1 day; and 1/3 will use for &amp;nbsp;2 days; the rest 1/3 will be used for 3 days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID &amp;nbsp;| Start _Date &amp;nbsp; &amp;nbsp;| Length_of_Use | Percentage&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp;| 17JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;0.333&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 &amp;nbsp; &amp;nbsp;| 17JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;0.334&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp;| 17JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;0.333&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4 &amp;nbsp; &amp;nbsp;| 18JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;0.5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;5 &amp;nbsp; &amp;nbsp;| 18JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;0.5&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;6 &amp;nbsp; &amp;nbsp;| 19JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;0.5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;7 &amp;nbsp; &amp;nbsp;| 19JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;0.5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;8 &amp;nbsp; &amp;nbsp;| 20JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;9 &amp;nbsp; &amp;nbsp;| 21JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And I do have&amp;nbsp;Demand by Use date level as below: (Table B)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID &amp;nbsp;| Use_Date &amp;nbsp; &amp;nbsp; &amp;nbsp;| Use_Demand&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp;| 17JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 &amp;nbsp; &amp;nbsp;| 18JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp;| 19JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4 &amp;nbsp; &amp;nbsp;| 20JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;5 &amp;nbsp; &amp;nbsp;| 21JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we have the above 2 tables as known information,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how could I&amp;nbsp;merge table A and table B into a table that could have demand by Start Date &amp;amp; Length of Use level as below?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID is just a sequence number, no key information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID &amp;nbsp;| Start _Date &amp;nbsp; &amp;nbsp;| Length_of_Use | Demand&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp;| 17JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 &amp;nbsp; &amp;nbsp;| 17JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp;| 17JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4 &amp;nbsp; &amp;nbsp;| 18JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;5 &amp;nbsp; &amp;nbsp;| 18JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;6 &amp;nbsp; &amp;nbsp;| 19JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;7 &amp;nbsp; &amp;nbsp;| 19JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;8 &amp;nbsp; &amp;nbsp;| 20JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;9 &amp;nbsp; &amp;nbsp;| 21JAN2016 &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 20:48:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324042#M9366</guid>
      <dc:creator>Crubal</dc:creator>
      <dc:date>2017-01-11T20:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data for SAS EG?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324044#M9367</link>
      <description>&lt;P&gt;It is difficult to guess the rules of creating the output.&lt;/P&gt;
&lt;P&gt;Please explain how to define DEMAND on output?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does ID have any impact on combining data from the two tables ? or is it just a sequence number ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 20:30:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324044#M9367</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-01-11T20:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data for SAS EG?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324050#M9368</link>
      <description>&lt;P&gt;Hi Shmuel,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID is just a sequence number, I will edit my question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first row of the output is: 3* 0.333 = 1 (Arrival Date 17JAN2017 &amp;amp; Length of Stay 1);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And the&amp;nbsp;second row of the output is: 3* 0.333 = 1 (Arrival Date 17JAN2017 &amp;amp; Length of Stay 2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And the third row of the output is: 3* 0.333 = 1 (Arrival Date 17JAN2017 &amp;amp; Length of Stay 3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 20:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324050#M9368</guid>
      <dc:creator>Crubal</dc:creator>
      <dc:date>2017-01-11T20:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data for SAS EG?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324080#M9370</link>
      <description>&lt;P&gt;according to your answer, then for &lt;STRONG&gt;start_date=18JAN2016&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;the demand should be &lt;STRONG&gt;4*0.5=2&lt;/STRONG&gt;&amp;nbsp;but on your output you have &lt;STRONG&gt;demand=1&lt;/STRONG&gt; ???&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 22:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324080#M9370</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-01-11T22:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data for SAS EG?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324082#M9371</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Demand 4 should be calculated as 4 = 3* 0.333 (Arrive 17JAN &amp;amp; Length_of_use =2) + 3* 0.333&amp;nbsp;&lt;SPAN&gt;(Arrive 17JAN &amp;amp; Length_of_use =3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + 1&amp;nbsp;(Arrive 18JAN &amp;amp; Length_of_use =1) + 1 (Arrive 18JAN &amp;amp; Length_of_use =4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So that demand Arriving at 18JAN2017 = 1 +1 = 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 22:10:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324082#M9371</guid>
      <dc:creator>Crubal</dc:creator>
      <dc:date>2017-01-11T22:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data for SAS EG?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324215#M9374</link>
      <description>&lt;P&gt;Sorry, your logic is still not clear enough to me.&lt;/P&gt;
&lt;P&gt;I can't guess what algorithm or formula to use in order to calculate the anted demand.&lt;/P&gt;
&lt;P&gt;Try explain the logic in words or formula.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 11:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324215#M9374</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-01-12T11:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data for SAS EG?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324246#M9375</link>
      <description>&lt;P&gt;Hi Shmuel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to figure out demand by 'Start_Date' &amp;amp; 'Length_of_Use' level&amp;nbsp;&lt;/P&gt;&lt;P&gt;based on demand by 'Use_Date' level (table B) and Probability for each&amp;nbsp;'Starting_Date' and 'Length_of_Use' (table A).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the example in Table B, 17JAN2017 has use_demand of 3, and according to the probability, 1 of them has length of use&amp;nbsp;1, whcih means the 'use_date' is 17JAN2017; 1 of them has &lt;SPAN&gt;length of use&amp;nbsp;2, whcih means the 'use_date' is 17JAN2017 and 18JAN2017; the rest 1 has&amp;nbsp; length of use 3, whcih means the 'use_date' is 17JAN2017, 18JAN2017 and 19JAN2017.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As in table B,&amp;nbsp;18JAN2017 has use_demand of&amp;nbsp;4, 2 of them come from 17JAN2017, hence, the rest 2 of them should come from 18JAN2017. Based on the probability table (table A), Starting_Date 18JAN2017 has 2 types of length of stay, both have probability 0.5; hence Start_Date&amp;nbsp;'18JAN2017' with&amp;nbsp;length of use 1 has demand 1, and '18JAN2017'&amp;nbsp;with length of use 4 has demand 1; whcih makes&amp;nbsp;4th and 5th row of table C.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope it will help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 14:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324246#M9375</guid>
      <dc:creator>Crubal</dc:creator>
      <dc:date>2017-01-12T14:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data for SAS EG?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324337#M9377</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/50019"&gt;@Crubal&lt;/a&gt;&amp;nbsp;I'm very sory. I feel you use profecional terms which are not clear enough to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just for example, you wrote:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"As in table B,&amp;nbsp;18JAN2017 has use_demand of&amp;nbsp;4, 2 of them come from 17JAN2017, hence, the rest 2 of them should come from 18JAN2017."&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Where in the datasets is the information or how do you calculate and come to the conclusion that -&amp;nbsp;&lt;STRONG&gt;2 of them come from 17JAN2017&lt;/STRONG&gt; etc. -&amp;nbsp;Why&amp;nbsp;&lt;STRONG&gt;2&lt;/STRONG&gt; ? &amp;nbsp;Why&amp;nbsp;&lt;STRONG&gt;from 17JAN2017&lt;/STRONG&gt; and not from 18JAN2017 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I give up and hope someone else in the forum will help you more. Wish you quick response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 17:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324337#M9377</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-01-12T17:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data for SAS EG?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324369#M9378</link>
      <description>&lt;P&gt;No problem Shmuel,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize for my bad explanation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example I used, 17JAN2017 has Use_Demand of 3, accoding to probability table, 1 of them will only be used for 1 day, 1 will be used for 2 days, and 1 will be used for 3 days. Hence 2 of the 3 will still be in use on date 18JAN2017.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we deduct the demand of 2 from the Use_demand for '18JAN2017', we could find out the rest 2 demand will come from 18JAN2017.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, hope this time it is clearer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 18:56:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324369#M9378</guid>
      <dc:creator>Crubal</dc:creator>
      <dc:date>2017-01-12T18:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data for SAS EG?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324386#M9379</link>
      <description>&lt;P&gt;Trying to understand the "story" I created a table attached as a PDF file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't understand:&lt;/P&gt;
&lt;P&gt;1) Is length of use is days count from start_use?&lt;/P&gt;
&lt;P&gt;2) Start_use = 18JAN2017 - how can 50% occupy 4 days length_of_use ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; What does it mean ?&lt;/P&gt;
&lt;P&gt;3) Table 2 case 2 define use_demand = 4 ? What does it mean ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If there are 2 days (18-19/JAN) how can it fill demand of 4 ?&lt;/P&gt;
&lt;P&gt;4) Alldata written in RED &amp;nbsp;- I do not understand what does it mean and how can it be.&lt;/P&gt;
&lt;P&gt;5) Does my table tels the story correctly ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I said, I'm not statistian and those terms I'm absolutely not famialiar with.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 20:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324386#M9379</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-01-12T20:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data for SAS EG?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324415#M9380</link>
      <description>&lt;P&gt;Hi Shmuel,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your patience!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe I should tell a little bit about background ahead, I apologize.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, rental car industry, a customer rent a car from 17JAN2017 to 19JAN2017, then the 'Start_Date' is 17JAN2017; length of use is 3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Length of use is counted from Start date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table A, probability table, means that how much percentage of the same Start_Date will rent the car for a certain length. And it is known information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Hence, customer starts from 18JAN2017 will either rent the car for 1 day, or for 4 days; either has 50% probability. (In this simple example, we just assume customer will rent a car for 1 day or 4 days)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Table B, the column 'Use_Demand' means on that day, how many cars are being used&amp;nbsp;by customers, and it is also known information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) As the red numbers you mentioned are 'Use_Demand' by 'Use_Date', it is known information, means how many cars are currently being used by customers, and our aim is to deduct how many customers come from Day 1, Day 2 .... and how long are they going to rent a car? (Hence we need the probability table)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5) I understand what you mean, sorry for my explanation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 21:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324415#M9380</guid>
      <dc:creator>Crubal</dc:creator>
      <dc:date>2017-01-12T21:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data for SAS EG?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324532#M9382</link>
      <description>&lt;P&gt;I should apologize.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You posted your question under "Data Management" community.&lt;/P&gt;
&lt;P&gt;My knowledge enables me help at "SAS Programing" community.&lt;/P&gt;
&lt;P&gt;I came upon your question exidentally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you should post again your question under "&lt;STRONG&gt;Analytics&lt;/STRONG&gt;" community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to me that you need SAS ETS procedures, but I'm not sure and not familiar with that model.&lt;/P&gt;
&lt;P&gt;Doing the work with SAS Base is to reinvent the wheel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for holding you that long.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 12:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324532#M9382</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-01-13T12:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data for SAS EG?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324548#M9384</link>
      <description>&lt;P&gt;Hi Shmuel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No worries, it really helps me explain it better. Thank you and I would post it somewhere else.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 13:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-aggregate-data-for-SAS-EG/m-p/324548#M9384</guid>
      <dc:creator>Crubal</dc:creator>
      <dc:date>2017-01-13T13:44:36Z</dc:date>
    </item>
  </channel>
</rss>

