<?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 sort and merge in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/sort-and-merge/m-p/551198#M7394</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to merge two datasets as shown below.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sub;
	set orig;
	where name="speech";
run;
data main;
	merge sub(in=a) orion.play(in=b);
	by actor;
	if a and b;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If I just run the code above, there is an error saying&amp;nbsp;&lt;SPAN&gt;ERROR: BY variables are not properly sorted on data set WORK.SUB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, if i sort the data as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sub out=sub;
	by actor;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;There are still errors saying&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR: Insufficient space in file WORK.'SASTMP-000000713'n.UTILITY.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: File WORK.'SASTMP-000000713'n.UTILITY is damaged. I/O processing did not complete.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Can anyone help me? Thanks!&lt;/DIV&gt;</description>
    <pubDate>Mon, 15 Apr 2019 18:57:01 GMT</pubDate>
    <dc:creator>RebeccaJW</dc:creator>
    <dc:date>2019-04-15T18:57:01Z</dc:date>
    <item>
      <title>sort and merge</title>
      <link>https://communities.sas.com/t5/SAS-Studio/sort-and-merge/m-p/551198#M7394</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to merge two datasets as shown below.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sub;
	set orig;
	where name="speech";
run;
data main;
	merge sub(in=a) orion.play(in=b);
	by actor;
	if a and b;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If I just run the code above, there is an error saying&amp;nbsp;&lt;SPAN&gt;ERROR: BY variables are not properly sorted on data set WORK.SUB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, if i sort the data as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sub out=sub;
	by actor;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;There are still errors saying&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR: Insufficient space in file WORK.'SASTMP-000000713'n.UTILITY.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: File WORK.'SASTMP-000000713'n.UTILITY is damaged. I/O processing did not complete.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Can anyone help me? Thanks!&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Apr 2019 18:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/sort-and-merge/m-p/551198#M7394</guid>
      <dc:creator>RebeccaJW</dc:creator>
      <dc:date>2019-04-15T18:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: sort and merge</title>
      <link>https://communities.sas.com/t5/SAS-Studio/sort-and-merge/m-p/551201#M7395</link>
      <description>&lt;P&gt;How big are these data sets?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 19:03:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/sort-and-merge/m-p/551201#M7395</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-15T19:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: sort and merge</title>
      <link>https://communities.sas.com/t5/SAS-Studio/sort-and-merge/m-p/551229#M7397</link>
      <description>There are almost 70000 rows and 8 columns in the data set.</description>
      <pubDate>Mon, 15 Apr 2019 19:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/sort-and-merge/m-p/551229#M7397</guid>
      <dc:creator>RebeccaJW</dc:creator>
      <dc:date>2019-04-15T19:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: sort and merge</title>
      <link>https://communities.sas.com/t5/SAS-Studio/sort-and-merge/m-p/551368#M7404</link>
      <description>&lt;P&gt;Are you using SAS University Edition?&lt;/P&gt;
&lt;P&gt;Try option TAGSORT .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;sort&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;sub out&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;sub  tagsort &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; actor&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Apr 2019 13:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/sort-and-merge/m-p/551368#M7404</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-04-16T13:17:39Z</dc:date>
    </item>
  </channel>
</rss>

