<?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 SAS Enterprise import multiple .txt files at once - same headers and formatting in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-import-multiple-txt-files-at-once-same-headers/m-p/654684#M36196</link>
    <description>&lt;P&gt;How do I import a large number of .txt files into SAS Enterprise at once?&amp;nbsp; The import data function will take way too long.&amp;nbsp; The column names begin in B1 and the dataset for each begins in B4.&amp;nbsp; There's 3163 lines in each file.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jun 2020 21:41:54 GMT</pubDate>
    <dc:creator>maliksmom2000</dc:creator>
    <dc:date>2020-06-08T21:41:54Z</dc:date>
    <item>
      <title>SAS Enterprise import multiple .txt files at once - same headers and formatting</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-import-multiple-txt-files-at-once-same-headers/m-p/654684#M36196</link>
      <description>&lt;P&gt;How do I import a large number of .txt files into SAS Enterprise at once?&amp;nbsp; The import data function will take way too long.&amp;nbsp; The column names begin in B1 and the dataset for each begins in B4.&amp;nbsp; There's 3163 lines in each file.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 21:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-import-multiple-txt-files-at-once-same-headers/m-p/654684#M36196</guid>
      <dc:creator>maliksmom2000</dc:creator>
      <dc:date>2020-06-08T21:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise import multiple .txt files at once - same headers and formatting</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-import-multiple-txt-files-at-once-same-headers/m-p/654696#M36197</link>
      <description>Text files don't have B1 and B4 - that's excel terminology. &lt;BR /&gt;&lt;BR /&gt;Are all the files in the same folder? Are they in different folders?&lt;BR /&gt;Is each file going to a different data set or are they getting combined?&lt;BR /&gt;Are all the variables the same in each file?&lt;BR /&gt;&lt;BR /&gt;And do you have a program to read a single file correctly - that's what you need to start out with. And it should be via a data step, not proc import or a task. &lt;BR /&gt;&lt;BR /&gt;Assuming all files are in one folder and they're all going to the same data set, the approach I discuss here is the same in EG but you still that that first part - the INPUT statements to read the file correctly first. Then replace the INPUT and INFILE in the link below and you should be good to go. &lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-do-I-write-a-macro-to-import-multiple-text-files-that-have/ta-p/223627" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-do-I-write-a-macro-to-import-multiple-text-files-that-have/ta-p/223627&lt;/A&gt;</description>
      <pubDate>Mon, 08 Jun 2020 22:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-import-multiple-txt-files-at-once-same-headers/m-p/654696#M36197</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-08T22:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise import multiple .txt files at once - same headers and formatting</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-import-multiple-txt-files-at-once-same-headers/m-p/655498#M36198</link>
      <description>&lt;P&gt;Here's &lt;A href="https://www.youtube.com/watch?v=UDKcTXMACEU" target="_self"&gt;a tutorial (about 15 minutes) that shows how to start with the Import Data task&lt;/A&gt;, create a code template, modify it using the INFILE with a wildcard spec to pull multiple files, and keep track of which records come from which files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FUDKcTXMACEU%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DUDKcTXMACEU&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FUDKcTXMACEU%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="200" height="112" scrolling="no" title="SAS Tip | SAS Enterprise Guide: Reading Text Files" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 12:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-import-multiple-txt-files-at-once-same-headers/m-p/655498#M36198</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2020-06-09T12:24:49Z</dc:date>
    </item>
  </channel>
</rss>

