<?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 Large Numbers of Dynamic Tables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merging-Large-Numbers-of-Dynamic-Tables/m-p/259384#M50187</link>
    <description>&lt;P&gt;It could be that you will run out of memory for data set buffers. &amp;nbsp;That's where open=defer can be useful but only if all the SETS have the exact same variables with the exact same length etc.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2016 16:48:12 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2016-03-28T16:48:12Z</dc:date>
    <item>
      <title>Merging Large Numbers of Dynamic Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Large-Numbers-of-Dynamic-Tables/m-p/259376#M50182</link>
      <description>&lt;P&gt;I’m looking at doing a rather complex data sorting algorithm using temporary tables.&amp;nbsp; Before doing it I’d like to check if this will work.&amp;nbsp; Can I dynamically create a large number of tables e.g. 200 and then merge them together in a set statement dynamically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking at using this logic for the set statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/26/010.html" target="_blank"&gt;http://support.sas.com/kb/26/010.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%macro names(prefix,maxnum);
  %do i=1 %to &amp;amp;maxnum;
    &amp;amp;prefix&amp;amp;i
  %end;
  ;
%mend names;

/* Call the macro on the SET statement */

data all;
  set %names(DS,3);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Mar 2016 16:32:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Large-Numbers-of-Dynamic-Tables/m-p/259376#M50182</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-03-28T16:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Large Numbers of Dynamic Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Large-Numbers-of-Dynamic-Tables/m-p/259379#M50183</link>
      <description>&lt;P&gt;How about a numbered range or name prefix range.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;set DS1-DS3;

set DS:;

Also you might find OPEN=DEFER, SET statement option useful.  If your DSs qualify.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Mar 2016 16:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Large-Numbers-of-Dynamic-Tables/m-p/259379#M50183</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-03-28T16:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Large Numbers of Dynamic Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Large-Numbers-of-Dynamic-Tables/m-p/259381#M50184</link>
      <description>&lt;P&gt;If you are careful with the naming there would be no need for a macro. Since they are temporary then great names like Temp1 to Temp200 suggest themselves. if they are all in the same library then you could use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set Temp: ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;The : is a list shortcut that says to use all sets that start with Temp.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 16:44:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Large-Numbers-of-Dynamic-Tables/m-p/259381#M50184</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-28T16:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Large Numbers of Dynamic Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Large-Numbers-of-Dynamic-Tables/m-p/259383#M50186</link>
      <description>&lt;P&gt;Thanks data_null_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll go with your syntax. &amp;nbsp;Its good to know the huge set won't be an issue.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 16:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Large-Numbers-of-Dynamic-Tables/m-p/259383#M50186</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-03-28T16:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Large Numbers of Dynamic Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Large-Numbers-of-Dynamic-Tables/m-p/259384#M50187</link>
      <description>&lt;P&gt;It could be that you will run out of memory for data set buffers. &amp;nbsp;That's where open=defer can be useful but only if all the SETS have the exact same variables with the exact same length etc.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 16:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Large-Numbers-of-Dynamic-Tables/m-p/259384#M50187</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-03-28T16:48:12Z</dc:date>
    </item>
  </channel>
</rss>

