<?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: Reg:Appending in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Appending/m-p/71365#M20602</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
This might help you out. Probably this is not the best solution but this might give you some idea on how to do it. Regarding scheduling, in what OS are you?&lt;BR /&gt;
&lt;BR /&gt;
/*  data set that contains the name of the datasets*/&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table temp as&lt;BR /&gt;
select memname from dictionary.tables&lt;BR /&gt;
where libname='Reports';&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
/* append to final table */&lt;BR /&gt;
%macro append2final(dsn=);&lt;BR /&gt;
proc append base=final data=&amp;amp;dsn force;run;&lt;BR /&gt;
%mend append2final;&lt;BR /&gt;
&lt;BR /&gt;
/*  loop through the table containing table names of the library Reports */&lt;BR /&gt;
data _null_;&lt;BR /&gt;
set temp;&lt;BR /&gt;
call execute('%append2final(dsn='|| memname ||')';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Milton</description>
    <pubDate>Tue, 15 Sep 2009 11:36:01 GMT</pubDate>
    <dc:creator>milts</dc:creator>
    <dc:date>2009-09-15T11:36:01Z</dc:date>
    <item>
      <title>Reg:Appending</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Appending/m-p/71364#M20601</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
i am having a dataset named Final. i am having a library named Reports,after the scheduling is completed there will be 5 datasets in that libarary(Reports).And i dont know the names of that datasets and they should be appended to final dataset .and it should be scheduled daily.</description>
      <pubDate>Tue, 15 Sep 2009 11:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Appending/m-p/71364#M20601</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-15T11:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Appending</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Appending/m-p/71365#M20602</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
This might help you out. Probably this is not the best solution but this might give you some idea on how to do it. Regarding scheduling, in what OS are you?&lt;BR /&gt;
&lt;BR /&gt;
/*  data set that contains the name of the datasets*/&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table temp as&lt;BR /&gt;
select memname from dictionary.tables&lt;BR /&gt;
where libname='Reports';&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
/* append to final table */&lt;BR /&gt;
%macro append2final(dsn=);&lt;BR /&gt;
proc append base=final data=&amp;amp;dsn force;run;&lt;BR /&gt;
%mend append2final;&lt;BR /&gt;
&lt;BR /&gt;
/*  loop through the table containing table names of the library Reports */&lt;BR /&gt;
data _null_;&lt;BR /&gt;
set temp;&lt;BR /&gt;
call execute('%append2final(dsn='|| memname ||')';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Milton</description>
      <pubDate>Tue, 15 Sep 2009 11:36:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Appending/m-p/71365#M20602</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2009-09-15T11:36:01Z</dc:date>
    </item>
  </channel>
</rss>

