<?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 Priority wise data allocation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Priority-wise-data-allocation/m-p/451024#M113637</link>
    <description>&lt;P&gt;&lt;BR /&gt;I am having 2 data sets as A and B.&lt;BR /&gt;As B data set contains names of the cities and the capacity of records it can handel .&lt;/P&gt;&lt;P&gt;In Data set A also contains name of the cities, segment,product etc...&lt;BR /&gt;segments are as follows :&lt;BR /&gt;EL, L, M,H EH,&lt;BR /&gt;so the records from the data set A should fill the counter limit defined in Dada set B.&lt;BR /&gt;e.g city Pune=5000 then all records pretaining to pune should get allocated and should not exceed the limit 5000.&lt;BR /&gt;and the records should get allocated/ tagged segment wise and where segment has priority while allocation.&lt;BR /&gt;Segemnt Priority&lt;BR /&gt;EL 1&lt;BR /&gt;L 2&lt;BR /&gt;M 3&lt;BR /&gt;H 4&lt;BR /&gt;EH 5&lt;/P&gt;&lt;P&gt;1. so if there are 1000 records for segment EL where city =pune then it should get allocated and then it should get reduced from the limit i.e 5000-1000=4000&lt;BR /&gt;and the remaining counter should be filled with the remainng segments based on priority. The limit allocted should be tagged as X and remaning records exceeding&lt;BR /&gt;the counter should be Tagged as Y.&lt;/P&gt;&lt;P&gt;2. So if there are 6000 records of segment EL where city=Pune then 5000 should get allocated or flagged as X and the remaning 1000 should be flagged as Y&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data set B:&lt;BR /&gt;city Company X Limit&lt;BR /&gt;Pune 500&lt;BR /&gt;mumbai 700&lt;BR /&gt;delhi 1000&lt;BR /&gt;chennai 300&lt;/P&gt;&lt;P&gt;conditions:&lt;BR /&gt;1. the limit of the city will be changing every month.&lt;BR /&gt;2. the rows should not extend the limit and should get tagged as x else y&lt;BR /&gt;3. the tagging should be according to segment priority.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Set A:&lt;/P&gt;&lt;P&gt;AGREEMENTID Allocation BRANCH SCHME_DESC segment&lt;BR /&gt;1556791 INHOUSE MUMBAI HL-VERIFIED&amp;nbsp; ELR&lt;BR /&gt;1074377 INHOUSE MUMBAI HL-VERIFIED&amp;nbsp; ELR&lt;BR /&gt;1171072 INHOUSE MUMBAI HL-VERIFIED&amp;nbsp; ELR&lt;BR /&gt;1338092 INHOUSE PUNE IFB102JUNE ELR&lt;BR /&gt;281705 INHOUSE JALANDHAR NO INCOME&amp;nbsp; (**bleep**) ELR&lt;BR /&gt;284747 INHOUSE LUDHIANA NO INCOME PROOF&amp;nbsp; (**bleep**) ELR&lt;BR /&gt;292577 INHOUSE NAGPUR GREEN CHANNEL&amp;nbsp; ELR&lt;BR /&gt;256129 INHOUSE JAIPUR GREEN CHANNEL&amp;nbsp; ELR&lt;BR /&gt;292598 INHOUSE CHANDIGARH NO INCOME&amp;nbsp; (**bleep**) ELR&lt;BR /&gt;287598 INHOUSE JALANDHAR Income&amp;nbsp; ELR&lt;BR /&gt;297420 INHOUSE NAGPUR NO INCOME&amp;nbsp; ELR&lt;/P&gt;&lt;P&gt;211674 INHOUSE MUMBAI HFCHL- LR&lt;BR /&gt;226198 INHOUSE DELHI HL- LR&lt;BR /&gt;327194 INHOUSE MUMBAI HFCHL- LR&lt;BR /&gt;1300414 INHOUSE PUNE SONY1JUN LR&lt;BR /&gt;29261 INHOUSE PUNE Self&amp;nbsp; LR&lt;BR /&gt;36345 INHOUSE BARODA Vacant&amp;nbsp; LR&lt;BR /&gt;387062 INHOUSE INDORE SELF&amp;nbsp; LR&lt;BR /&gt;387064 INHOUSE INDORE SELF&amp;nbsp; LR&lt;/P&gt;&lt;P&gt;4819364 FR NASIK AGRI PROGRAM MR&lt;BR /&gt;359295 INHOUSE DELHI MULTIPLE USE&amp;nbsp; MR&lt;BR /&gt;359337 INHOUSE INDORE MULTIPLE USE&amp;nbsp; MR&lt;BR /&gt;332245 INHOUSE CHENNAI SELF&amp;nbsp; MR&lt;BR /&gt;382035 INHOUSE JALANDHAR Self&amp;nbsp; MR&lt;BR /&gt;523088 INHOUSE KOLKATA Rented&amp;nbsp; MR&lt;BR /&gt;533513 INHOUSE DELHI HE GROSS&amp;nbsp; MR&lt;/P&gt;</description>
    <pubDate>Wed, 04 Apr 2018 11:01:14 GMT</pubDate>
    <dc:creator>anirudhs</dc:creator>
    <dc:date>2018-04-04T11:01:14Z</dc:date>
    <item>
      <title>Priority wise data allocation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Priority-wise-data-allocation/m-p/451024#M113637</link>
      <description>&lt;P&gt;&lt;BR /&gt;I am having 2 data sets as A and B.&lt;BR /&gt;As B data set contains names of the cities and the capacity of records it can handel .&lt;/P&gt;&lt;P&gt;In Data set A also contains name of the cities, segment,product etc...&lt;BR /&gt;segments are as follows :&lt;BR /&gt;EL, L, M,H EH,&lt;BR /&gt;so the records from the data set A should fill the counter limit defined in Dada set B.&lt;BR /&gt;e.g city Pune=5000 then all records pretaining to pune should get allocated and should not exceed the limit 5000.&lt;BR /&gt;and the records should get allocated/ tagged segment wise and where segment has priority while allocation.&lt;BR /&gt;Segemnt Priority&lt;BR /&gt;EL 1&lt;BR /&gt;L 2&lt;BR /&gt;M 3&lt;BR /&gt;H 4&lt;BR /&gt;EH 5&lt;/P&gt;&lt;P&gt;1. so if there are 1000 records for segment EL where city =pune then it should get allocated and then it should get reduced from the limit i.e 5000-1000=4000&lt;BR /&gt;and the remaining counter should be filled with the remainng segments based on priority. The limit allocted should be tagged as X and remaning records exceeding&lt;BR /&gt;the counter should be Tagged as Y.&lt;/P&gt;&lt;P&gt;2. So if there are 6000 records of segment EL where city=Pune then 5000 should get allocated or flagged as X and the remaning 1000 should be flagged as Y&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data set B:&lt;BR /&gt;city Company X Limit&lt;BR /&gt;Pune 500&lt;BR /&gt;mumbai 700&lt;BR /&gt;delhi 1000&lt;BR /&gt;chennai 300&lt;/P&gt;&lt;P&gt;conditions:&lt;BR /&gt;1. the limit of the city will be changing every month.&lt;BR /&gt;2. the rows should not extend the limit and should get tagged as x else y&lt;BR /&gt;3. the tagging should be according to segment priority.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Set A:&lt;/P&gt;&lt;P&gt;AGREEMENTID Allocation BRANCH SCHME_DESC segment&lt;BR /&gt;1556791 INHOUSE MUMBAI HL-VERIFIED&amp;nbsp; ELR&lt;BR /&gt;1074377 INHOUSE MUMBAI HL-VERIFIED&amp;nbsp; ELR&lt;BR /&gt;1171072 INHOUSE MUMBAI HL-VERIFIED&amp;nbsp; ELR&lt;BR /&gt;1338092 INHOUSE PUNE IFB102JUNE ELR&lt;BR /&gt;281705 INHOUSE JALANDHAR NO INCOME&amp;nbsp; (**bleep**) ELR&lt;BR /&gt;284747 INHOUSE LUDHIANA NO INCOME PROOF&amp;nbsp; (**bleep**) ELR&lt;BR /&gt;292577 INHOUSE NAGPUR GREEN CHANNEL&amp;nbsp; ELR&lt;BR /&gt;256129 INHOUSE JAIPUR GREEN CHANNEL&amp;nbsp; ELR&lt;BR /&gt;292598 INHOUSE CHANDIGARH NO INCOME&amp;nbsp; (**bleep**) ELR&lt;BR /&gt;287598 INHOUSE JALANDHAR Income&amp;nbsp; ELR&lt;BR /&gt;297420 INHOUSE NAGPUR NO INCOME&amp;nbsp; ELR&lt;/P&gt;&lt;P&gt;211674 INHOUSE MUMBAI HFCHL- LR&lt;BR /&gt;226198 INHOUSE DELHI HL- LR&lt;BR /&gt;327194 INHOUSE MUMBAI HFCHL- LR&lt;BR /&gt;1300414 INHOUSE PUNE SONY1JUN LR&lt;BR /&gt;29261 INHOUSE PUNE Self&amp;nbsp; LR&lt;BR /&gt;36345 INHOUSE BARODA Vacant&amp;nbsp; LR&lt;BR /&gt;387062 INHOUSE INDORE SELF&amp;nbsp; LR&lt;BR /&gt;387064 INHOUSE INDORE SELF&amp;nbsp; LR&lt;/P&gt;&lt;P&gt;4819364 FR NASIK AGRI PROGRAM MR&lt;BR /&gt;359295 INHOUSE DELHI MULTIPLE USE&amp;nbsp; MR&lt;BR /&gt;359337 INHOUSE INDORE MULTIPLE USE&amp;nbsp; MR&lt;BR /&gt;332245 INHOUSE CHENNAI SELF&amp;nbsp; MR&lt;BR /&gt;382035 INHOUSE JALANDHAR Self&amp;nbsp; MR&lt;BR /&gt;523088 INHOUSE KOLKATA Rented&amp;nbsp; MR&lt;BR /&gt;533513 INHOUSE DELHI HE GROSS&amp;nbsp; MR&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 11:01:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Priority-wise-data-allocation/m-p/451024#M113637</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2018-04-04T11:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Priority wise data allocation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Priority-wise-data-allocation/m-p/451130#M113683</link>
      <description>&lt;P&gt;I am not 100% sure I follow your rules as I don't see any example input data sets or a an example result. The narrative sounds sort of like a linear programming exercise where your data set B has constraints.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SAS/OR module has a number of procedures such as CLP or OPTNET&amp;nbsp;that may be of use if you have access to the module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise it may be best to provide small example data sets with the results. Hint: the constraints should be 3 or 4 records instead of thousands.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 14:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Priority-wise-data-allocation/m-p/451130#M113683</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-04T14:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Priority wise data allocation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Priority-wise-data-allocation/m-p/451394#M113785</link>
      <description>Set A and set B are example data sets.&lt;BR /&gt;as data set A contains 30 records&lt;BR /&gt;so according to dataset A you can change limit of the city in data set B. as i can change the limit of the cities in data set B as per availability. As data set B has no connection with A . I am searching for code template or code.&lt;BR /&gt;output required: is as per the condition as the flagging count of the city should not cross the limit specified and the tagging should be done priority wise of segment. Basically want to fill the counter of city with specified no. of records pertaining to the same city.</description>
      <pubDate>Thu, 05 Apr 2018 04:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Priority-wise-data-allocation/m-p/451394#M113785</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2018-04-05T04:01:01Z</dc:date>
    </item>
  </channel>
</rss>

