<?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: Assign Var equally post reserving some for one Variable? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Assign-Var-equally-post-reserving-some-for-one-Variable/m-p/836646#M330806</link>
    <description>&lt;P&gt;Please post the data you have in usable form: a data step using datalines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without "some customers are reserved to managerX", proc rank could do the job, but i think some additional steps are required to fulfil the requirement.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2022 05:46:56 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2022-10-04T05:46:56Z</dc:date>
    <item>
      <title>Assign Var equally post reserving some for one Variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assign-Var-equally-post-reserving-some-for-one-Variable/m-p/836626#M330797</link>
      <description>&lt;P&gt;There are n number&amp;nbsp; of customers belongs to one branches and there multiple managers(say 3 managers in this case) in the same branch.&lt;/P&gt;
&lt;P&gt;some customers are reserved to manager1, need to assign rest of the customers managers such that all the managers are assigned to equal number of customers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Customer_NBR&amp;nbsp; &amp;nbsp;Branch&amp;nbsp; &amp;nbsp;Assign_ID&lt;/P&gt;
&lt;P&gt;1&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; abc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Manger1&lt;/P&gt;
&lt;P&gt;2&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; abc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Manager2&lt;/P&gt;
&lt;P&gt;3&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;abc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Manager2&lt;/P&gt;
&lt;P&gt;4&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;abc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--&lt;/P&gt;
&lt;P&gt;5&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;abc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; abc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After assigning mangers&amp;nbsp; to each customer, I would need each manager to have equal number of customers assigined&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Manger1&amp;nbsp; &amp;nbsp;34 Customers&lt;/P&gt;
&lt;P&gt;Manager 2 33 Customers&lt;/P&gt;
&lt;P&gt;Manager3&amp;nbsp; &amp;nbsp;33 Customers&lt;/P&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>Tue, 04 Oct 2022 02:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assign-Var-equally-post-reserving-some-for-one-Variable/m-p/836626#M330797</guid>
      <dc:creator>Gangi</dc:creator>
      <dc:date>2022-10-04T02:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Var equally post reserving some for one Variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assign-Var-equally-post-reserving-some-for-one-Variable/m-p/836646#M330806</link>
      <description>&lt;P&gt;Please post the data you have in usable form: a data step using datalines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without "some customers are reserved to managerX", proc rank could do the job, but i think some additional steps are required to fulfil the requirement.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 05:46:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assign-Var-equally-post-reserving-some-for-one-Variable/m-p/836646#M330806</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-10-04T05:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Var equally post reserving some for one Variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assign-Var-equally-post-reserving-some-for-one-Variable/m-p/836658#M330810</link>
      <description>&lt;UL&gt;
&lt;LI&gt;supply usable example data&lt;/LI&gt;
&lt;LI&gt;show how customers are reserved to specific managers&lt;/LI&gt;
&lt;LI&gt;show how managers are supplied; you do not want to hardcode them in the program&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 04 Oct 2022 08:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assign-Var-equally-post-reserving-some-for-one-Variable/m-p/836658#M330810</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-04T08:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Var equally post reserving some for one Variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assign-Var-equally-post-reserving-some-for-one-Variable/m-p/836666#M330813</link>
      <description>&lt;P&gt;So you have 3 tables to start with? Something like: customer_branch, branch_manager, manager_customer?&lt;/P&gt;
&lt;P&gt;Or do you already have a single table to start with? If so where would we get the full list of all managers belonging to a branch (even the ones without pre-assigned customers)?&lt;/P&gt;
&lt;P&gt;Posting sample data in form of a data step(s) is what helps us to spend the time answering your question instead of spending the time preparing sample data.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 09:25:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assign-Var-equally-post-reserving-some-for-one-Variable/m-p/836666#M330813</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-10-04T09:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Var equally post reserving some for one Variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assign-Var-equally-post-reserving-some-for-one-Variable/m-p/836847#M330875</link>
      <description>&lt;P&gt;attached the data,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In sheet1 Customer_id is assigned to ID1, if that ID matches to manager in Sheet2 for that branch then Cu will get same manager. if not assign to other manager in the same branch. But Finally each manager should get equal number of Customers&amp;nbsp; assigned to them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for abc branch,&amp;nbsp; below number customers assigned to each manager.&lt;/P&gt;
&lt;P&gt;manager1-- 32&lt;/P&gt;
&lt;P&gt;manager2-- 32&lt;/P&gt;
&lt;P&gt;manager3-- 31&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 03:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assign-Var-equally-post-reserving-some-for-one-Variable/m-p/836847#M330875</guid>
      <dc:creator>Gangi</dc:creator>
      <dc:date>2022-10-05T03:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Var equally post reserving some for one Variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assign-Var-equally-post-reserving-some-for-one-Variable/m-p/836860#M330887</link>
      <description>&lt;P&gt;You have been shown how to post data&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/Count-number-of-changes-in-variables-over-time/m-p/432701/highlight/true#M27970" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. Excel files are not helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 04:21:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assign-Var-equally-post-reserving-some-for-one-Variable/m-p/836860#M330887</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-05T04:21:17Z</dc:date>
    </item>
  </channel>
</rss>

