<?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 Join in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Join/m-p/806822#M81734</link>
    <description>&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;I have the following outputs data: &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_201901&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_201903&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_201906&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_201909&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_201912&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_202001&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_202106&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_202203&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;How to join all of them, since the way I'm doing it doesn't work:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Resul_end;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; resul_201901&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;-resul_202203;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Is there a way to do without quoting all?&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 17:45:36 GMT</pubDate>
    <dc:creator>Thalitacosta</dc:creator>
    <dc:date>2022-04-08T17:45:36Z</dc:date>
    <item>
      <title>Join</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Join/m-p/806822#M81734</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;I have the following outputs data: &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_201901&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_201903&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_201906&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_201909&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_201912&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_202001&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_202106&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;resul_202203&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000000"&gt;How to join all of them, since the way I'm doing it doesn't work:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Resul_end;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; resul_201901&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;-resul_202203;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Is there a way to do without quoting all?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 17:45:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Join/m-p/806822#M81734</guid>
      <dc:creator>Thalitacosta</dc:creator>
      <dc:date>2022-04-08T17:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Join</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Join/m-p/806823#M81735</link>
      <description>&lt;P&gt;This does not join the tables. It merely stacks them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data in usable form if you want a usable code answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 17:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Join/m-p/806823#M81735</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-04-08T17:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Join</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Join/m-p/806826#M81736</link>
      <description>&lt;P&gt;Build the list with SQL from the DICTIONARY.TABLES dataset:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select memname into :sets separated by " "
from dictionary.tables 
where libname="WORK" and memname like "RESUL_20%"
order by memname;
quit;

data Resul_end;
set &amp;amp;sets.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Apr 2022 18:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Join/m-p/806826#M81736</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2022-04-08T18:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Join</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Join/m-p/806836#M81738</link>
      <description>&lt;P&gt;If those are &lt;STRONG&gt;ALL&lt;/STRONG&gt; the Resul_ files in the library:&lt;/P&gt;
&lt;P&gt;The : at the end of a base name will build a list of &lt;STRONG&gt;all&lt;/STRONG&gt; names that start with those characters&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
   set resul_:  ;
run;&lt;/PRE&gt;
&lt;P&gt;If you have more apparent years and want &lt;STRONG&gt;ALL&lt;/STRONG&gt; the sets from 2019, 2020, 2021 and 2022&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
   set resul_2019:  resul_2020: resul_2021:  resul_2022:  ;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but if you want a random selection not likely to be much of a short cut list possible.&lt;/P&gt;
&lt;P&gt;Note Resul_20:&amp;nbsp; would reference all datasets with a year starting with 20 but can't tell if that is helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 19:30:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Join/m-p/806836#M81738</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-08T19:30:00Z</dc:date>
    </item>
  </channel>
</rss>

