<?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: 50/50 Split Help in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/589020#M14856</link>
    <description>&lt;P&gt;Glad you found your answer&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2019 12:36:00 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-09-16T12:36:00Z</dc:date>
    <item>
      <title>50/50 Split Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/588985#M14848</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this message finds you all well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please kindly assist me. I am stuck. I have 841 accounts and would like to do a 50/50 of these accounts between 2 debt collectors. Please see my current code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;prev_month = intnx('month',today(),-1);&lt;BR /&gt;last_month = intnx('month',today(),0);&lt;BR /&gt;call symputx("prev_month_m2y2",put(month(prev_month),z2.)||put(prev_month,year2.),4.);&lt;BR /&gt;call symputx("last_month_m2y2",put(month(last_month),z2.)||put(last_month,year2.),4.);&lt;BR /&gt;call symputx("this_month_m2y2",put(month(today()),z2.)||put(today(),year2.),4.);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table INSPIRE.INSPIRE_MATTERS_&amp;amp;last_month_m2y2._updated as&lt;BR /&gt;select a.*, b.current_edc_no2, b.current_edc_no2_date, c.account_guid, c.cd&lt;BR /&gt;from INSPIRE.INSPIRE_MATTERS_&amp;amp;last_month_m2y2 as a&lt;BR /&gt;left join (&lt;BR /&gt;select distinct case when substr(account_guid,1,4) = "7300" then substr(account_guid,5,6)||substr(account_guid,1,4) else account_guid end as account_guid,&lt;BR /&gt;"ARA Wayne Druian" as current_edc_no2, today() as current_edc_no2_date format date9.&lt;BR /&gt;from ara_accounts&lt;BR /&gt;) as b&lt;BR /&gt;on a.'matter number'n = b.account_guid&lt;BR /&gt;left join (&lt;BR /&gt;select account_guid, cd&lt;BR /&gt;from INSPIRE.STATEMENTS_STATS_&amp;amp;last_month_m2y2&lt;BR /&gt;) as c&lt;BR /&gt;on a.'matter number'n = c.account_guid;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ara_matter_import_&amp;amp;last_month_m2y2;&lt;BR /&gt;set INSPIRE.INSPIRE_MATTERS_&amp;amp;last_month_m2y2._updated;&lt;BR /&gt;if current_edc_no2 = "ARA Wayne Druian";&lt;BR /&gt;drop last_month_edc edc_action current_edc current_edc_no2 current_edc_no2_date;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data= ara_matter_import_&amp;amp;last_month_m2y2&lt;BR /&gt;outfile="\\lewexcal\ARA Inspire\Inbox\ara_matter_import_blake_&amp;amp;last_month_m2y2..csv"&lt;BR /&gt;dbms=dlm replace; delimiter=";";&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 10:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/588985#M14848</guid>
      <dc:creator>MagD</dc:creator>
      <dc:date>2019-09-16T10:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: 50/50 Split Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/588991#M14849</link>
      <description>&lt;P&gt;Do you want to split up the data into two data sets or simply a 1/2 variable to indicate the debt collector?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 10:37:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/588991#M14849</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-16T10:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: 50/50 Split Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/588992#M14850</link>
      <description>&lt;P&gt;I'd like to split into 2 data sets, please.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 10:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/588992#M14850</guid>
      <dc:creator>MagD</dc:creator>
      <dc:date>2019-09-16T10:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: 50/50 Split Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/588994#M14851</link>
      <description>&lt;P&gt;Ok. Just to be clear.. I assume that you want to split the data set&amp;nbsp;&lt;STRONG&gt;ara_matter_import_&amp;amp;last_month_m2y2&amp;nbsp;&lt;/STRONG&gt;into two equally sized data sets correct?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 10:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/588994#M14851</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-16T10:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: 50/50 Split Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/589003#M14852</link>
      <description>Yes, that is correct.</description>
      <pubDate>Mon, 16 Sep 2019 11:26:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/589003#M14852</guid>
      <dc:creator>MagD</dc:creator>
      <dc:date>2019-09-16T11:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: 50/50 Split Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/589006#M14853</link>
      <description>&lt;P&gt;Ok. There are many ways to do this. Here is a small example that splits the sashelp.class data set into two data sets &lt;STRONG&gt;one&lt;/STRONG&gt; and &lt;STRONG&gt;two&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one two;
    set sashelp.class;
    if mod(_N_, 2) = 0 then output one;
                       else output two;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Sep 2019 11:31:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/589006#M14853</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-16T11:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: 50/50 Split Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/589018#M14854</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect data=sashelp.class out=temp groups=2;
run;

data one two;
 set temp;
 if groupid=1 then output one;
  else output two;
  run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Sep 2019 12:32:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/589018#M14854</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-09-16T12:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: 50/50 Split Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/589019#M14855</link>
      <description>Thank you! It works perfectly!</description>
      <pubDate>Mon, 16 Sep 2019 12:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/589019#M14855</guid>
      <dc:creator>MagD</dc:creator>
      <dc:date>2019-09-16T12:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: 50/50 Split Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/589020#M14856</link>
      <description>&lt;P&gt;Glad you found your answer&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 12:36:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/50-50-Split-Help/m-p/589020#M14856</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-16T12:36:00Z</dc:date>
    </item>
  </channel>
</rss>

