<?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: merging multiple tables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/merging-multiple-tables/m-p/853491#M337347</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the example by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; in this &lt;A href="https://communities.sas.com/t5/SAS-Programming/macro-do-loop-to-append-monthly-dataset/m-p/853142#M337225" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/macro-do-loop-to-append-monthly-dataset/m-p/853142#M337225&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Which allows use of interval lists. The&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options nodsnferr;&lt;/PRE&gt;
&lt;P&gt;means that a list like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data total_A;
     merge a_202253 - a_202302;
     by genotypageCourant_info;
run;&lt;/PRE&gt;
&lt;P&gt;can be used where the gaps in a sequence that would normally generate an error doesn't.&lt;/P&gt;
&lt;P&gt;That list will attempt to use a_202253 a_202254 a_202255 a_202256 etc to a_202299 a_202300. Normally the default option of DSNFERR would throw an error if any of the values in the list aren't present.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 16:27:45 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-01-12T16:27:45Z</dc:date>
    <item>
      <title>merging multiple tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merging-multiple-tables/m-p/853464#M337329</link>
      <description>&lt;P&gt;Hello! I have a small problem that I would like to submit to you.&lt;BR /&gt;I have a list of tables named A_202201 to A202252 then A_202301 and A_202302. In fact, A_202201 corresponds to the table of week 01 of the year 2022 and so on. So we will have in the coming weeks other tables like A_202303 ...&lt;BR /&gt;I want to merge these tables by making a loop but I can't do it. Here is the program:&lt;/P&gt;&lt;P&gt;data total_A;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; merge&amp;nbsp; do j=&amp;amp;minsem0 to &amp;amp;maxsem1-&lt;STRONG&gt;1&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where &amp;amp;j not in &lt;STRONG&gt;202253&lt;/STRONG&gt; to &lt;STRONG&gt;202300&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A_&amp;amp;j&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by genotypageCourant_info;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 14:59:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merging-multiple-tables/m-p/853464#M337329</guid>
      <dc:creator>IdrissaO</dc:creator>
      <dc:date>2023-01-12T14:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: merging multiple tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merging-multiple-tables/m-p/853491#M337347</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the example by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; in this &lt;A href="https://communities.sas.com/t5/SAS-Programming/macro-do-loop-to-append-monthly-dataset/m-p/853142#M337225" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/macro-do-loop-to-append-monthly-dataset/m-p/853142#M337225&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Which allows use of interval lists. The&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options nodsnferr;&lt;/PRE&gt;
&lt;P&gt;means that a list like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data total_A;
     merge a_202253 - a_202302;
     by genotypageCourant_info;
run;&lt;/PRE&gt;
&lt;P&gt;can be used where the gaps in a sequence that would normally generate an error doesn't.&lt;/P&gt;
&lt;P&gt;That list will attempt to use a_202253 a_202254 a_202255 a_202256 etc to a_202299 a_202300. Normally the default option of DSNFERR would throw an error if any of the values in the list aren't present.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 16:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merging-multiple-tables/m-p/853491#M337347</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-01-12T16:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: merging multiple tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merging-multiple-tables/m-p/853520#M337365</link>
      <description>&lt;P&gt;Are you certain that you want to use MERGE and not SET ?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 17:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merging-multiple-tables/m-p/853520#M337365</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2023-01-12T17:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: merging multiple tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merging-multiple-tables/m-p/853529#M337370</link>
      <description>&lt;P&gt;Yes, it is MERGE that I use. the program was running correctly before the year change&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 18:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merging-multiple-tables/m-p/853529#M337370</guid>
      <dc:creator>IdrissaO</dc:creator>
      <dc:date>2023-01-12T18:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: merging multiple tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merging-multiple-tables/m-p/853536#M337374</link>
      <description>&lt;P&gt;In that case, here is an alternative.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrcon/n0oru3akf51pi5n1wco2onzr39oz.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrcon/n0oru3akf51pi5n1wco2onzr39oz.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;merge A_2022: A_2023: ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The colon includes all existing data set names that begin with A_2022 and A_2023, so be sure that that you want all of them before using this.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 18:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merging-multiple-tables/m-p/853536#M337374</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2023-01-12T18:41:32Z</dc:date>
    </item>
  </channel>
</rss>

