<?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 Import all txt files in to a single sas dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-all-txt-files-in-to-a-single-sas-dataset/m-p/12691#M1396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is one method: &lt;A href="http://support.sas.com/kb/24/707.html"&gt;http://support.sas.com/kb/24/707.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2011 13:04:41 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-09-20T13:04:41Z</dc:date>
    <item>
      <title>Import all txt files in to a single sas dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-all-txt-files-in-to-a-single-sas-dataset/m-p/12690#M1395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to import multiple files in to a sas dataset located in a particular library. For example, suppose there are 5 txt files present in your local system and you need those 5 txt will appnd in a single sas dataset . Output dataset will have a single column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to write this Proc import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 12:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-all-txt-files-in-to-a-single-sas-dataset/m-p/12690#M1395</guid>
      <dc:creator>ani</dc:creator>
      <dc:date>2011-09-20T12:52:34Z</dc:date>
    </item>
    <item>
      <title>Import all txt files in to a single sas dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-all-txt-files-in-to-a-single-sas-dataset/m-p/12691#M1396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is one method: &lt;A href="http://support.sas.com/kb/24/707.html"&gt;http://support.sas.com/kb/24/707.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-all-txt-files-in-to-a-single-sas-dataset/m-p/12691#M1396</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-20T13:04:41Z</dc:date>
    </item>
    <item>
      <title>Import all txt files in to a single sas dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-all-txt-files-in-to-a-single-sas-dataset/m-p/12692#M1397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on what you mean by "import".&amp;nbsp; If you just have text files then I would just "input" them and would not bother with using any import functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If the file names follow a simple pattern then just us a wildcard in the filename specification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data all ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile '*.txt';&lt;/P&gt;&lt;P&gt;&amp;nbsp; input column1 ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If you have a static list of filenames then build a FILENAME statement.&lt;/P&gt;&lt;P&gt;filename myfiles ('one.txt','two.txt,'three.txt','four.txt','five.txt');&lt;/P&gt;&lt;P&gt;data all;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile myfiles;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input column1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 13:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-all-txt-files-in-to-a-single-sas-dataset/m-p/12692#M1397</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-09-20T13:42:37Z</dc:date>
    </item>
  </channel>
</rss>

