<?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: Combine *.sas7bdat files based on a reference file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Combine-sas7bdat-files-based-on-a-reference-file/m-p/207495#M38599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And we need this job to run on weekly basis to check for new files.can you please list out the software that is required and the process. I 'm pretty new with SAS tool.&lt;/P&gt;&lt;P&gt;Thanks a lot for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 19:44:14 GMT</pubDate>
    <dc:creator>Abhi2008</dc:creator>
    <dc:date>2015-05-05T19:44:14Z</dc:date>
    <item>
      <title>Combine *.sas7bdat files based on a reference file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-sas7bdat-files-based-on-a-reference-file/m-p/207493#M38597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have multiple sas7bdat files saved on a network drive and a reference file which lists the file names that need to be combined.&lt;/P&gt;&lt;P&gt;How can I do put them together using data steps?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 16:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-sas7bdat-files-based-on-a-reference-file/m-p/207493#M38597</guid>
      <dc:creator>Abhi2008</dc:creator>
      <dc:date>2015-04-30T16:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Combine *.sas7bdat files based on a reference file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-sas7bdat-files-based-on-a-reference-file/m-p/207494#M38598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read the list of files from the reference file into a macro variable, if it's less than 64K characters and include that in your set statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;select name into :ref_list separated by " " from reference_list;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set &amp;amp; ref_list;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 17:17:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-sas7bdat-files-based-on-a-reference-file/m-p/207494#M38598</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-30T17:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Combine *.sas7bdat files based on a reference file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-sas7bdat-files-based-on-a-reference-file/m-p/207495#M38599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And we need this job to run on weekly basis to check for new files.can you please list out the software that is required and the process. I 'm pretty new with SAS tool.&lt;/P&gt;&lt;P&gt;Thanks a lot for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 19:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-sas7bdat-files-based-on-a-reference-file/m-p/207495#M38599</guid>
      <dc:creator>Abhi2008</dc:creator>
      <dc:date>2015-05-05T19:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Combine *.sas7bdat files based on a reference file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-sas7bdat-files-based-on-a-reference-file/m-p/207496#M38600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Check on a weekly basis" sounds like you need to schedule your job. If it's just "run weekly" then any scheduler will do (Cron, Task Scheduler,....).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;check for new files&lt;/SPAN&gt;": What identifies a new file? Safest would be you maintain a list of already processed files and then compare this list with your control file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You seem to have a process where you add some weekly snapshots to a "analytical base table". Assuming this table is a SAS data set and if the structure of the weekly files is stable (same columns with same attributes) then you should eventually consider to use Proc Append instead of a data step. This would avoid processing ALL the data every single week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative approach: You could also create a view over the individual SAS files. This way you would only need to re-create the view once a week including all files available. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 23:02:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-sas7bdat-files-based-on-a-reference-file/m-p/207496#M38600</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-05-05T23:02:12Z</dc:date>
    </item>
  </channel>
</rss>

