<?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: How do I read multiple raw data files with different structure in one data step in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-read-multiple-raw-data-files-with-different-structure/m-p/248853#M56481</link>
    <description>Thanks ballard. I used the filename to get the names of all the files I imported.</description>
    <pubDate>Tue, 09 Feb 2016 14:10:19 GMT</pubDate>
    <dc:creator>Aj</dc:creator>
    <dc:date>2016-02-09T14:10:19Z</dc:date>
    <item>
      <title>How do I read multiple raw data files with different structure in one data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-read-multiple-raw-data-files-with-different-structure/m-p/248683#M56460</link>
      <description>&lt;P&gt;1, I have multiple unstructured log files with different formats/Type of file i.e, &amp;nbsp;: .log, .GTI, .txt files&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I want to read them all into a single data step &amp;nbsp; &amp;nbsp;eg: file1.log, file2.GT1, file3.txt into a single data set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. I tried to import them using "infile 'C:filepath\*.log" but I will be missing the files from other formats. Is there a way to upload all of them at once?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 15:46:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-read-multiple-raw-data-files-with-different-structure/m-p/248683#M56460</guid>
      <dc:creator>Aj</dc:creator>
      <dc:date>2016-02-08T15:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read multiple raw data files with different structure in one data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-read-multiple-raw-data-files-with-different-structure/m-p/248695#M56463</link>
      <description>&lt;P&gt;If you want to ALL files in the directory then 'C:\path\*.*' if just the explicit extenstions then place the diffent file name bits within parentheses and use quotes such as&lt;/P&gt;
&lt;P&gt;infile ('C:\path\*.log' 'C:\path\*.gti' 'c:\path\*.txt')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When getting something a bit off like this I tend to use a FILENAME statement to create a reference to my input files as then any of the actua INFILE options are easier to find.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 16:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-read-multiple-raw-data-files-with-different-structure/m-p/248695#M56463</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-02-08T16:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read multiple raw data files with different structure in one data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-read-multiple-raw-data-files-with-different-structure/m-p/248760#M56467</link>
      <description>&lt;P&gt;I think, the INFILE statement (unlike the FILENAME statement) requires additional quotes around the parenthesized list:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;infile &lt;STRONG&gt;"&lt;/STRONG&gt;('C:\path\*.log' 'C:\path\*.gti' 'c:\path\*.txt')&lt;STRONG&gt;"&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 22:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-read-multiple-raw-data-files-with-different-structure/m-p/248760#M56467</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-02-08T22:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read multiple raw data files with different structure in one data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-read-multiple-raw-data-files-with-different-structure/m-p/248853#M56481</link>
      <description>Thanks ballard. I used the filename to get the names of all the files I imported.</description>
      <pubDate>Tue, 09 Feb 2016 14:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-read-multiple-raw-data-files-with-different-structure/m-p/248853#M56481</guid>
      <dc:creator>Aj</dc:creator>
      <dc:date>2016-02-09T14:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read multiple raw data files with different structure in one data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-do-I-read-multiple-raw-data-files-with-different-structure/m-p/248855#M56483</link>
      <description>This worked for me too. Thank you very much</description>
      <pubDate>Tue, 09 Feb 2016 14:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-do-I-read-multiple-raw-data-files-with-different-structure/m-p/248855#M56483</guid>
      <dc:creator>Aj</dc:creator>
      <dc:date>2016-02-09T14:10:57Z</dc:date>
    </item>
  </channel>
</rss>

