<?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 Want to append 10 datasets into one dataset using Macro. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Want-to-append-10-datasets-into-one-dataset-using-Macro/m-p/462451#M70397</link>
    <description>&lt;P&gt;&lt;BR /&gt;I have 10datasets of monthly wise data, table names are like IND_UA_012018, IND_UA_022018, IND_UA_032018, IND_UA_042018,....IND_UA_102018.&lt;BR /&gt;I want macro code to append all the 10 datasets into one table using a macro&lt;/P&gt;</description>
    <pubDate>Tue, 15 May 2018 18:09:42 GMT</pubDate>
    <dc:creator>Naveen45</dc:creator>
    <dc:date>2018-05-15T18:09:42Z</dc:date>
    <item>
      <title>Want to append 10 datasets into one dataset using Macro.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Want-to-append-10-datasets-into-one-dataset-using-Macro/m-p/462451#M70397</link>
      <description>&lt;P&gt;&lt;BR /&gt;I have 10datasets of monthly wise data, table names are like IND_UA_012018, IND_UA_022018, IND_UA_032018, IND_UA_042018,....IND_UA_102018.&lt;BR /&gt;I want macro code to append all the 10 datasets into one table using a macro&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 18:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Want-to-append-10-datasets-into-one-dataset-using-Macro/m-p/462451#M70397</guid>
      <dc:creator>Naveen45</dc:creator>
      <dc:date>2018-05-15T18:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Want to append 10 datasets into one dataset using Macro.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Want-to-append-10-datasets-into-one-dataset-using-Macro/m-p/462453#M70398</link>
      <description>&lt;P&gt;UNTESTED CODE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro dothis;
    %do i=1 %to 10;
		%let monthyear=%sysfunc(mdy(&amp;amp;i,1,2018));
		%let filename=IND_UA_%sysfunc(putn(&amp;amp;monthyear,mmyyn6.));
		proc append base=all new=&amp;amp;filename;
                run;
	%end;
%mend;
%dothis&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 May 2018 18:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Want-to-append-10-datasets-into-one-dataset-using-Macro/m-p/462453#M70398</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-05-15T18:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Want to append 10 datasets into one dataset using Macro.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Want-to-append-10-datasets-into-one-dataset-using-Macro/m-p/462465#M70399</link>
      <description>&lt;P&gt;If these are the only data sets that start with the prefix IND_UA_ then there is no need to use a macro:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data All;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;set IND_UA_&lt;/STRONG&gt;: ;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 18:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Want-to-append-10-datasets-into-one-dataset-using-Macro/m-p/462465#M70399</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-05-15T18:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Want to append 10 datasets into one dataset using Macro.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Want-to-append-10-datasets-into-one-dataset-using-Macro/m-p/462790#M70416</link>
      <description>&lt;P&gt;And if all those datasets have the same variables and variable attributes, you can add the "open=defer" option to the SET statement.&amp;nbsp; "open=defer" tells sas to re-use the same input buffer for each incoming data set.&amp;nbsp; Otherwise a memory buffer is generated for each incoming data set.&amp;nbsp; We often use this option when concatenating daily data sets over a quarter year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data All;&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;set IND_UA_&lt;/STRONG&gt;:&amp;nbsp;&amp;nbsp; open=defer;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 18:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Want-to-append-10-datasets-into-one-dataset-using-Macro/m-p/462790#M70416</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-05-16T18:29:43Z</dc:date>
    </item>
  </channel>
</rss>

